Skip to content

Commit

Permalink
Fix mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Nov 18, 2024
1 parent 2133c0a commit 19d6db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tritonbench/utils/triton_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def __call__(cls, *args, **kwargs):

def _translate_mode(tb_args):
def _has_and_true(attr):
if hasattr(tb_args, attr) and attr:
if hasattr(tb_args, attr) and getattr(tb_args, attr):
return True
return False
if _has_and_true("fwd"):
Expand Down

0 comments on commit 19d6db9

Please sign in to comment.