-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
revise atan op #6288
revise atan op #6288
Conversation
b8f85db
to
3de2e95
Compare
ngraph/test/visitors/op/atan.cpp
Outdated
|
||
TEST(attributes, atan_op) | ||
{ | ||
NodeBuilder::get_ops().register_factory<op::Atan>(); |
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.
ould you please rebase your PR to the latest master. And please use parametrized visitor API test which was introduced in this PR: #6181
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.
fixed, changed to use parametrized visitor API test
3de2e95
to
26e2488
Compare
Please resolve merge conflicts. |
ngraph/test/visitors/op/atan.cpp
Outdated
|
||
using Types = ::testing::Types<UnaryOperatorType<ngraph::op::v0::Atan, element::f32>>; | ||
|
||
INSTANTIATE_TYPED_TEST_CASE_P(visitor_without_attribute, |
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.
Please rebase your PR to the latest master and use INSTANTIATE_TYPED_TEST_SUITE_P
macro
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.
done rebase, use new macro for the 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.
Please correct Inputs/Output sections as follows:
**Inputs**
* **1**: A tensor of type *T* and arbitrary shape. **Required.**
**Outputs**
* **1**: The result of element-wise *Atan* operation applied to the input tensor. A tensor of type *T* and same shape as the input tensor.
Summarizing:
- Types have to be surrounded by *
- Always specify type and shape of inputs/outputs
ngraph/test/op_eval/atan.cpp
Outdated
using namespace std; | ||
using namespace ngraph; | ||
|
||
TEST(op_eval, atan) |
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.
Could you add SLT for Atan operation?
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.
per #6361, drop the op_eval test, been covered in backend 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.
I mean, could you verify that we have SLT for this operation?
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.
yes, the single layer test is in inference-engine/tests/functional/inference_engine/serialization/single_layer/activation.cpp
Additionally, this operation as spec indicates, should have reference implementation specific for integer types. Please check #6429 for implementation details |
Co-authored-by: Gabriele Galiero Casay <[email protected]>
Co-authored-by: Gabriele Galiero Casay <[email protected]>
Co-authored-by: Gabriele Galiero Casay <[email protected]>
f65e77c
to
3f1a39f
Compare
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.
Looks like ngraph/test/type_prop/atan.cpp
is empty file
docs/ops/arithmetic/Atan_1.md
Outdated
|
||
**Inputs** | ||
|
||
* **1**: An tensor of type *T*. **Required.** | ||
* **1**: An tensor of type *T* and arbitrary shape. **Required.** |
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.
typo: An tensor of ---> A tensor of ...
f3514e6
to
0faa531
Compare
* revise atan op * use parametrized vistor API * use new gtest macros * Update docs/ops/arithmetic/Atan_1.md Co-authored-by: Gabriele Galiero Casay <[email protected]> * Update docs/ops/arithmetic/Atan_1.md Co-authored-by: Gabriele Galiero Casay <[email protected]> * Update ngraph/core/src/op/atan.cpp Co-authored-by: Gabriele Galiero Casay <[email protected]> * update doc to follow the rules * create type_prop for atan * drop op_eval to be covered in backend * add the missing type prop case * add integer type ref impl * fix clang issue Co-authored-by: Gabriele Galiero Casay <[email protected]>
* revise atan op * use parametrized vistor API * use new gtest macros * Update docs/ops/arithmetic/Atan_1.md Co-authored-by: Gabriele Galiero Casay <[email protected]> * Update docs/ops/arithmetic/Atan_1.md Co-authored-by: Gabriele Galiero Casay <[email protected]> * Update ngraph/core/src/op/atan.cpp Co-authored-by: Gabriele Galiero Casay <[email protected]> * update doc to follow the rules * create type_prop for atan * drop op_eval to be covered in backend * add the missing type prop case * add integer type ref impl * fix clang issue Co-authored-by: Gabriele Galiero Casay <[email protected]>
* revise atan op * use parametrized vistor API * use new gtest macros * Update docs/ops/arithmetic/Atan_1.md Co-authored-by: Gabriele Galiero Casay <[email protected]> * Update docs/ops/arithmetic/Atan_1.md Co-authored-by: Gabriele Galiero Casay <[email protected]> * Update ngraph/core/src/op/atan.cpp Co-authored-by: Gabriele Galiero Casay <[email protected]> * update doc to follow the rules * create type_prop for atan * drop op_eval to be covered in backend * add the missing type prop case * add integer type ref impl * fix clang issue Co-authored-by: Gabriele Galiero Casay <[email protected]>
Details:
Tickets: