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

[onnx-3] Make axis on concat required. #390

Merged
merged 6 commits into from Feb 20, 2018
Merged

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Dec 28, 2017

Fixes #374

Signed-off-by: Edward Z. Yang ezyang@fb.com

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
.Attr("axis",
"Which axis to concat on",
AttributeProto::INT,
OPTIONAL)
REQUIRED)
Copy link
Member

Choose a reason for hiding this comment

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

"required" is the default value, so you may just remove "OPTIONAL" here. Ideally, there're only two APIs, one for required attribute, one for optional attribute with default value (and remove this flag finally).

@linkerzhang
Copy link
Member

Very interesting. When I tried to change it to "required", it broke several backend test cases (test_backend_test.py, cases: test_densenet121|test_inception_v1|test_inception_v2|test_shufflenet|test_squeezenet). I thought that these test models need to be updated accordingly. It's only my local issue? :)

@@ -25,6 +25,7 @@ using OperatorSetVersion = int;

const char* const ONNX_DOMAIN = "";
const bool OPTIONAL = false;
const bool REQUIRED = true;
Copy link
Member

Choose a reason for hiding this comment

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

This may not be needed as the default is "required".

@houseroad
Copy link
Member

Yeah, I think if we need to regenerate these models. The concats don't have axis in these models.

@houseroad
Copy link
Member

@anderspapitto could you take a look?

@anderspapitto
Copy link
Contributor

I've uploaded a new version of shufflenet, will do the others after I wait a bit to make sure I didn't break anything

@bddppq
Copy link
Member

bddppq commented Jan 3, 2018

@anderspapitto there is no need to “wait”, you can manually test the new model files

@ezyang
Copy link
Contributor Author

ezyang commented Feb 20, 2018

good to merge when CI passes

@AppVeyorBot
Copy link

Build onnx 0.3.1173 failed (commit 4aad5fd910 by @bddppq)

@bddppq bddppq merged commit 535c8c1 into master Feb 20, 2018
@anderspapitto anderspapitto deleted the pr/concat-axis-required branch February 22, 2018 20:16
@anderspapitto anderspapitto restored the pr/concat-axis-required branch February 22, 2018 20:36
@bddppq bddppq deleted the pr/concat-axis-required branch February 22, 2018 22:39
Ac2zoom pushed a commit to Ac2zoom/onnx that referenced this pull request Jun 21, 2018
* [onnx-3] Make axis on concat required.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

* No need to explicitly specifying REQUIRED

* Fix version bump

* Re-generate docs
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
* [onnx-3] Make axis on concat required.


* No need to explicitly specifying REQUIRED

* Fix version bump

* Re-generate docs
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

7 participants