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

adding tests for cast operation #543

Merged
merged 8 commits into from
Feb 27, 2018
Merged

adding tests for cast operation #543

merged 8 commits into from
Feb 27, 2018

Conversation

pk-g
Copy link
Contributor

@pk-g pk-g commented Feb 21, 2018

No description provided.

@pk-g
Copy link
Contributor Author

pk-g commented Feb 21, 2018

@bddppq , @houseroad : please feel free to review this PR instead of earlier PR on cast operator tests.

@AppVeyorBot
Copy link

Build onnx 0.3.1290 completed (commit 75cb369816 by @houseroad)

@houseroad houseroad closed this Feb 26, 2018
@houseroad houseroad reopened this Feb 26, 2018
Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

LG, one comment to address.

Thanks!

for case in test_cases:
from_type = case[0]
to_type = case[1]
input = np.random.random_sample(shape).astype(type_map[getattr(TensorProto, from_type)])
Copy link
Member

Choose a reason for hiding this comment

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

In the generated doc, user may be confused about the type_map. If we put TENSOR_TYPE_TO_NP_TYPE here directly, it will be clear to users.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, pushed an update.

@bddppq
Copy link
Member

bddppq commented Feb 27, 2018

@onnxbot test this please

@houseroad houseroad merged commit 176e357 into onnx:master Feb 27, 2018
Ac2zoom pushed a commit to Ac2zoom/onnx that referenced this pull request Jun 21, 2018
* adding tests for cast operation

* addressing PR feedback
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
* adding tests for cast operation

* addressing PR feedback
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.

None yet

4 participants