Skip to content

Conversation

@alter-xp
Copy link
Contributor

@alter-xp alter-xp commented Nov 2, 2020

In order to enrich the support of TF operator and the need of practical work, we add rint op in tensorflow frontend.

@giuseros

"ReverseV2": _reverse_v2(),
"RightShift": AttrCvt("right_shift"),
"Round": AttrCvt("round"),
"Rint": AttrCvt("round"),
Copy link
Member

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.

Copy link
Contributor Author

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)
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@giuseros
Copy link
Contributor

giuseros commented Nov 3, 2020

Hi @alter-xp ,
Given you address @siju-samuel comments, this LGTM

Copy link
Member

@siju-samuel siju-samuel left a comment

Choose a reason for hiding this comment

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

LGTM

@siju-samuel siju-samuel merged commit b7318a7 into apache:main Nov 9, 2020
@siju-samuel
Copy link
Member

Thanks @alter-xp @giuseros . This PR is merged.

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 2, 2020
* TF frontend: add rint op

* Added negative numbers to the test
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 4, 2020
* TF frontend: add rint op

* Added negative numbers to the test
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Dec 4, 2020
* TF frontend: add rint op

* Added negative numbers to the test
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.

3 participants