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

Add UnionShape for SparseTensor TypeProto #3461

Merged
merged 6 commits into from
May 1, 2021

Conversation

yuslepukhin
Copy link
Contributor

This is a missing utility for SparseTensor type proto

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>
@yuslepukhin yuslepukhin requested a review from a team as a code owner April 30, 2021 21:55

namespace ONNX_NAMESPACE {

void UnionShapeInfo(const TensorShapeProto& source_shape, TensorShapeProto& target_shape) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the refactoring and moving it into a .cc file. May be useful to add a comment above that source_shape and target_shape are assumed to have same dim_size().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will remove it from the header

@gramalingam
Copy link
Contributor

LGTM, thanks! Just a minor comment above.

Copy link
Contributor

@askhade askhade left a comment

Choose a reason for hiding this comment

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

LGTM

yuslepukhin and others added 3 commits April 30, 2021 15:23
Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>
Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>
@gramalingam gramalingam merged commit 32c7cb6 into onnx:master May 1, 2021
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request May 10, 2021
* Add UnionShape for SparseTensor TypeProto

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>

* Remove utility function from the header.

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>

* Document new utility function.

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>
neginraoof pushed a commit to neginraoof/onnx that referenced this pull request May 14, 2021
* Add UnionShape for SparseTensor TypeProto

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>

* Remove utility function from the header.

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>

* Document new utility function.

Signed-off-by: Dmitri Smirnov <dmitrism@microsoft.com>
Signed-off-by: neginraoof <neginmr@utexas.edu>
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

3 participants