-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[PT FE] Add aten::rrelu #27528
base: master
Are you sure you want to change the base?
[PT FE] Add aten::rrelu #27528
Conversation
Feedback? This is my first contribution to anything, really, so apologies if things are a bit messy. A few points: I accidentally pushed changes to cmake/developer_package/frontends/frontends.cmake. I take it I'm supposed to remove those, correct? Also, I’m encountering the following error: CMake Error at cmake/developer_package/frontends/frontends.cmake:195 (add_library):
Cannot find source file: ../../../src/frontends/pytorch/src/op/rrelu.cpp Does this indicate an issue with my build setup? Am I on the right track with this PR? I realize I’m missing Thanks for your help! |
@AdamPSU Sorry for delayed response. You were going in the right direction, why did you close the PR? Do you to continue it? |
I got cold feet and feared I was doing something wrong... But it's reassuring hearing you say this. I'm willing to open the PR again, though confirmation to the following would be great: 1.) Is something wrong with my build (refer to the above discussion post) |
You do not need to add |
Output<Node> lower = ov::op::v0::Constant::create(element::f32, Shape{1}, {1.0f / 8.0f}); | ||
Output<Node> upper = ov::op::v0::Constant::create(element::f32, Shape{1}, {1.0f / 3.0f}); |
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.
lower
and upper
are the inputs, so please use context.get_input
to get them.
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.
Will there always be inputs? According to the documentation for rrelu
, if the inputs are omitted, lower
is set to 1/8
and upper
is 1/3
.
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.
No, it is not guaranteed, so you need to check if they are present using input_is_none
@@ -193,7 +193,7 @@ macro(ov_add_frontend) | |||
|
|||
# Create library | |||
add_library(${TARGET_NAME} ${LIBRARY_SRC} ${LIBRARY_HEADERS} ${LIBRARY_PUBLIC_HEADERS} | |||
${PROTO_SRCS} ${PROTO_HDRS} ${flatbuffers_schema_files} ${proto_files}) | |||
${PROTO_SRCS} ${PROTO_HDRS} ${flatbuffers_schema_files} ${proto_files} "../../../src/frontends/pytorch/src/op/rrelu.cpp") |
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.
Remove this change please
Thanks -- a bit busy because of exams, but I'll get to this on Thursday. May take me a couple of days, but I'll try my best. Thanks for the patience, and I'll be sure to write those test cases. :) |
Okay, no worries |
@mvafin Feel free to take a look at some of the changes; I believe I'm done with aten::rrelu. I intend to experiment with the test cases later tonight. |
Details:
Tickets: