Skip to content

Commit

Permalink
Add plugin arg to vmfbRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
daveliddell committed Jun 12, 2024
1 parent 815c857 commit fdaec4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions models/turbine_models/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@


class vmfbRunner:
def __init__(self, device, vmfb_path, external_weight_path=None):
def __init__(self, device, vmfb_path, external_weight_path=None, extra_plugin=None):
flags = []
haldriver = ireert.get_driver(device)
clean_driver = False
if extra_plugin:
ireert.flags.parse_flags(f"--executable_plugin={extra_plugin}")
clean_driver = True
haldriver = ireert.get_driver(device, clean_driver)
if "://" in device:
try:
device_idx = int(device.split("://")[-1])
Expand Down

0 comments on commit fdaec4b

Please sign in to comment.