Skip to content

Conversation

@yinghai
Copy link
Contributor

@yinghai yinghai commented Nov 10, 2018

Summary: The semantics of C2 and ONNX Concat is a bit different. C2 concat accepts "add_axis" arg and will raise the dim if so. It's equivalent of attaching a Reshape after plain concat in ONNX.

Differential Revision: D13012867

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.

Could you add some comment to elaborate what's the meaning of add_axis and the second output in the code? Otherwise, each time, we have to check the implementation in caffe2.

This comment was marked as off-topic.

@yinghai
Copy link
Contributor Author

yinghai commented Nov 13, 2018

Addressed comments.

)

Summary:
Pull Request resolved: pytorch#13798

The semantics of C2 and ONNX Concat is a bit different. C2 concat accepts "add_axis" arg and will raise the dim if so. It's equivalent of attaching a Reshape after plain concat in ONNX.

Reviewed By: rdzhabarov

Differential Revision: D13012867

fbshipit-source-id: dae10c85b19f1c765bc952ff4e71fe815e8c2536
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