-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
TF frontend: add rint op #6818
TF frontend: add rint op #6818
Conversation
@@ -2391,6 +2391,7 @@ def _impl(inputs, attr, params, mod): | |||
"ReverseV2": _reverse_v2(), | |||
"RightShift": AttrCvt("right_shift"), | |||
"Round": AttrCvt("round"), | |||
"Rint": AttrCvt("round"), |
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.
preserve the alphabetical order. keep Rint above Round.
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.
🆗
|
||
def _test_forward_rint(shape): | ||
tf.disable_eager_execution() | ||
np_data = np.random.uniform(1, 100, size=shape).astype(np.float32) |
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.
include -ve floats also for testing.
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.
Thank you for your comments, but I don't get your point.
What does '- ve floats' mean?
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.
use
np_data = np.random.uniform(-100, 100, size=shape).astype(np.float32)
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.
thanks!
Hi @alter-xp , |
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
* TF frontend: add rint op * Added negative numbers to the test
* TF frontend: add rint op * Added negative numbers to the test
* TF frontend: add rint op * Added negative numbers to the test
In order to enrich the support of TF operator and the need of practical work, we add rint op in tensorflow frontend.
@giuseros