-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[PyTorch] : implement support for replicated{1,2,3} pad #28271
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
Conversation
Signed-off-by: 11happy <[email protected]>
|
humble ping! |
|
build_jenkins |
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
|
build_jenkins |
Signed-off-by: 11happy <[email protected]>
|
I have fixed the code style , ran clang-format. |
|
build_jenkins |
Signed-off-by: 11happy <[email protected]>
|
humble ping! |
|
build_jenkins |
Signed-off-by: 11happy <[email protected]>
|
build_jenkins |
| class TestReplicatePad1D(PytorchLayerTest): | ||
| def _prepare_input(self, ndim=4, dtype="float32"): | ||
| import numpy as np | ||
| input_5d_shape = [5,9,1,1,2,4] |
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 remove input_5d_shape and ndim from here and add normal input_shape to @pytest.mark.parametrize.
The same comment for other tests
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,
please suggest the input_shapes to keep, currently kept random from my end,
thank you
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
Signed-off-by: 11happy <[email protected]>
src/frontends/pytorch/src/op/pad.cpp
Outdated
| return translate_pad_common(context, data, paddings, pad_value, "reflect"); | ||
| } | ||
|
|
||
| OutputVector translate_replicate_pad_nd(const NodeContext & context) { |
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.
| OutputVector translate_replicate_pad_nd(const NodeContext & context) { | |
| OutputVector translate_replicate_pad_nd(const NodeContext& context) { |
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
| {"aten.replicate_pad1d.default", op::translate_replicate_pad_nd}, | ||
| {"aten.replicate_pad2d.default", op::translate_replicate_pad_nd}, | ||
| {"aten.replicate_pad3d.default", op::translate_replicate_pad_nd}, |
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.
Tests for torch.export fail. I can see that names are wrong, but tests fail on torch side, please check 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.
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 have corrected the names. Thank you
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.
Hii @mvafin can you please start the CI once again please so that I can see the issues.
Signed-off-by: 11happy <[email protected]>
|
Hello :) is there any further input required from my side, I would like this PR to be completed. |
|
This PR will be closed in a week because of 2 weeks of no activity. |
Signed-off-by: 11happy <[email protected]>
|
Hello @mvafin I have currently remove the integer inputs to tests which were causing the CI to fail see the log below. |
|
also to correct this issue I was thinking how do I detect from integer padding what type of padding needs to be done ie 1d ,2d or 3d, also this issue will also be there in reflection_pad as well as it also have similar implementation. |
|
humble ping! @rkazants |
|
build_jenkins |
|
Thank you for running the CI, I can now see the issues, I will resolve them & ping here. |
The CI is failing mostly due to other issues, currently there is no CI failure for this PRs changes. Thank you |
|
build_jenkins |
|
sure, let me check is it sporadic problem with infra or problem with code/tests |
|
This PR will be closed in a week because of 2 weeks of no activity. |


Overview:
This pull request fixes #23322.
Testing:
CC: