-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Remove add #1156
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
Remove add #1156
Conversation
3ea6a6b
to
a7a56de
Compare
763c6a3
to
dc345f2
Compare
dc345f2
to
0c2d8f4
Compare
d1ef240
to
b021d72
Compare
Shape shape{2, 2}; | ||
auto A = make_shared<op::Parameter>(element::f32, shape); | ||
auto B = make_shared<op::Parameter>(element::f32, shape); | ||
auto f = make_shared<Function>(make_shared<op::Add>(A, B), ParameterVector{A, B}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should rather change the op in this test to a different op rather than removing it. It's not the addition operation itself itested here, it checks the save/load interface of a backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will change it. Thank you!
ngraph/test/provenance.cpp
Outdated
@@ -601,89 +601,3 @@ TEST(provenance, opset0_downgrade_pass_topk) | |||
}; | |||
traverse_nodes({topk_v0}, tag_check, as_node_vector(topk_v1->input_values())); | |||
} | |||
|
|||
TEST(provenance, opset1_upgrade_pass_graph) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upgade pass is still used in the tests. It's supposed to be removed when we verify and confirm that the tests don't use opset0
any more. I suggest to revert this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will recheck. Thank you!
@@ -29,6 +29,7 @@ | |||
#include "ngraph/pass/manager.hpp" | |||
#include "ngraph/serializer.hpp" | |||
#include "ngraph/util.hpp" | |||
#include "op/add.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this include is needed here.
@@ -144,21 +144,6 @@ TEST(serialize, friendly_name) | |||
} | |||
#endif | |||
|
|||
TEST(serialize, existing_models) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test has nothing to do with the Add operation. Why is it removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Models from this test cannot be serialised, because model contains v0::Add op.
ngraph/test/serialize.cpp
Outdated
@@ -197,26 +182,6 @@ TEST(serialize, constant) | |||
EXPECT_TRUE(found); | |||
} | |||
|
|||
TEST(benchmark, serialize) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - why are you removing this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Model contains Add v0 operation
c46e7d6
to
bad0f70
Compare
bad0f70
to
85a70d2
Compare
This PR should be merged first: #1144