-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#14099: ttnn.clip, clamp interface to follow Pytorch #14127
Conversation
95f6532
to
f63677f
Compare
@@ -1288,7 +1288,7 @@ def clip( | |||
**kwargs, | |||
): | |||
t0 = setup_tt_tensor(x, device, layout[0], input_mem_config[0], dtype[0]) | |||
t1 = ttnn.clip(t0, min=low, max=high, memory_config=output_mem_config) | |||
t1 = ttnn.clip(t0, low, high, memory_config=output_mem_config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if I give (t0, high, low)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6fc5827
to
fd1de38
Compare
fd1de38
to
4da329f
Compare
…torrent#14127) tenstorrent#14099: ttnn.clip interface to follow Pytorch
https://github.com/tenstorrent/tt-metal/actions/runs/11474694921 - passed
Work done : To change the float values to positional arguments as requested in #14099