Skip to content
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

[TOPI] Add left_shift, right_shift, clip, cast #504

Merged
merged 3 commits into from
Oct 3, 2017

Conversation

ZihengJiang
Copy link
Contributor

No description provided.

y : tvm.Tensor
The result.
"""
return tvm.compute(x.shape, lambda *i: tvm.max(tvm.min(x(*i), a_max), a_min))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to do tvm.const(a_max, x(*i).dtype) to make sure it is casted to right type

@tqchen tqchen merged commit af8cbdd into apache:master Oct 3, 2017
@ZihengJiang ZihengJiang deleted the dev branch October 12, 2017 23:44
tqchen pushed a commit to tqchen/tvm that referenced this pull request May 26, 2018
tqchen pushed a commit that referenced this pull request May 29, 2018
tqchen pushed a commit to tqchen/tvm that referenced this pull request Jul 6, 2018
sergei-mironov pushed a commit to sergei-mironov/tvm that referenced this pull request Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants