Skip to content

Commit

Permalink
black lint formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranvirsv committed Jun 21, 2023
1 parent 89d3c17 commit 6fa8404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shark/iree_utils/compile_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_iree_device_args(device, extra_args=[]):
)
if device_uri[0] == "metal":
from shark.iree_utils.metal_utils import get_iree_metal_args

return get_iree_metal_args(
device_num=device_num, extra_args=extra_args
)
Expand Down
3 changes: 2 additions & 1 deletion shark/iree_utils/metal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def get_metal_triple_flag(device_name="", device_num=0, extra_args=[]):
print(f"Target : {metal_device}")
return None


def get_iree_metal_args(device_num=0, extra_args=[]):
# res_metal_flag = ["--iree-flow-demote-i64-to-i32"]

Expand All @@ -101,7 +102,7 @@ def get_iree_metal_args(device_num=0, extra_args=[]):
print(f"Using target triple {arg} from command line args")
meatal_triple_flag = arg
break

if metal_triple_flag is None:
meatal_triple_flag = get_metal_triple_flag(
device_num=device_num, extra_args=extra_args
Expand Down

0 comments on commit 6fa8404

Please sign in to comment.