Skip to content

Conversation

TMVector
Copy link
Contributor

Running tools/update_doc.sh from master creates these previously untracked files

@TMVector TMVector requested a review from a team as a code owner February 17, 2020 19:52
@jeremycochoy
Copy link
Contributor

😱 Something is wrong with the Celu backend tests. I will see if I can fix it. Sorry. 😞

@TMVector
Copy link
Contributor Author

No worries @jeremycochoy, happens to everyone :)

I think the problem might actually be with the code which creates the expanded-functions test not handling ref attrs correctly[0]. I'll give fixing it a quick try now in this PR.

[0] https://github.com/onnx/onnx/blob/master/onnx/backend/test/case/node/__init__.py#L59-L63

@TMVector TMVector force-pushed the generate-celu-tests branch from 6150f5b to 462c0aa Compare February 18, 2020 11:02
@jeremycochoy
Copy link
Contributor

Thanks. :)

I am also wondering if the lines at

if (attr_map.count(attr.ref_attr_name())) {
AttributeProto* new_attr = new_node->add_attribute();
new_attr->CopyFrom(attr_map[attr.ref_attr_name()]);
may require some modification too ?

@jeremycochoy
Copy link
Contributor

One last mistake I found that should result in test failing:

node = onnx.helper.make_node(
'Celu',
inputs=['X'],
outputs=['Y']
)

The attribute alpha=2 (should be alpha=2.) is not forwarded to the node, so there should be a mismatch between the backend computing with alpha=1. and numpy computing with alpha=2..

TMVector and others added 3 commits February 18, 2020 13:50
Co-authored-by: Jeremy Cochoy <jeremy.cochoy@gmail.com>
Co-authored-by: Jeremy Cochoy <jeremy.cochoy@gmail.com>
@TMVector TMVector force-pushed the generate-celu-tests branch from 316fcec to 4f27d0b Compare February 18, 2020 13:53
@linkerzhang
Copy link
Member

please fix Linux ci failure.

+flake8
2388
./onnx/backend/test/case/node/celu.py:22:18: E251 unexpected spaces around keyword / parameter equals
2389
./onnx/backend/test/case/node/celu.py:22:20: E251 unexpected spaces around keyword / parameter equals

@prasanthpul prasanthpul added this to the 1.7 milestone Feb 24, 2020
@linkerzhang linkerzhang merged commit 8c5bf9d into onnx:master Feb 25, 2020
@TMVector TMVector deleted the generate-celu-tests branch February 25, 2020 13:40
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
* Fix ref attrs in expanded node tests

* Fix ref attrs in FunctionExpandHelper

Co-authored-by: Jeremy Cochoy <jeremy.cochoy@gmail.com>

* Use correct alpha in celu backend test

Co-authored-by: Jeremy Cochoy <jeremy.cochoy@gmail.com>

* Generate node backend tests for celu operator

* Fix type of alpha attribute in celu node backend test

* Fix over-opinionated flake8

* Fixup celu attr type

* Regenerate docs

Co-authored-by: Jeremy Cochoy <jeremy.cochoy@gmail.com>
Co-authored-by: Ke Zhang <kezhan@microsoft.com>
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.

4 participants