-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
support int32 and int64 kernel for clip operator #32373
Conversation
Thanks for your contribution! |
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 for OP-benchmark-CI
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 for API Doc
TODO:update Chinese API Doc
with shape [1] and type ``int32``, ``float32``, ``float64``. | ||
max (float32|Tensor): The upper bound with type ``float32`` or a ``Tensor`` | ||
max (float32|int|Tensor): The upper bound with type ``float32``, ``int`` or a ``Tensor`` | ||
with shape [1] and type ``int32``, ``float32``, ``float64``. |
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.
float32 -> float
python/paddle/tensor/math.py
Outdated
max = fmax if max is None else max | ||
min = min_ if min is None else min | ||
max = max_ if max is None else max | ||
print('input min max value: ', min, max) |
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.
删除print
4bc92fc
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
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
PR types
Function optimization
PR changes
OPs
Describe
clip支持int32和int64 kernel