Skip to content

Commit

Permalink
Restore general handler for aten.hardtanh
Browse files Browse the repository at this point in the history
  • Loading branch information
jdh8 committed Dec 10, 2024
1 parent 4e1cbfe commit d81b305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_ttnn/passes/lowering/to_tt_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def __init__(self, target, args, kwargs):
############################################################
# Pointwise unary
############################################################
if target == torch.ops.aten.hardtanh.default and args[1] == -1.0 and args[2] == 1.0:
if target == torch.ops.aten.hardtanh.default:
# aten.hardtanh args are positional but ttnn.clip uses kw args
new_kwargs = map_args_to_kwargs(args, ((1, "min_val"), (2, "max_val")), default_none=True)
new_args = (args[0],)
Expand Down

0 comments on commit d81b305

Please sign in to comment.