-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[Transformations][CPU] Introduce Convolution fusion with bias #29076
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
2c87699
to
ce6fcca
Compare
src/core/shape_inference/include/convolution_shape_inference.hpp
Outdated
Show resolved
Hide resolved
Are there going to be any tests added for the added functionality? |
namespace op { | ||
namespace internal { | ||
|
||
class TRANSFORMATIONS_API ConvolutionBiased : public ov::op::util::ConvolutionFwdPropBase { |
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.
TRANSFORMATIONS_API is usually used for exporting transformations, not operations.
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.
Hm, this is strange. I can see TRANSFORMATIONS_API
macro usage in this context across many files in src/common/transformations/include/ov_ops
dir. Do they also use that in incorrect way?
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 see, then we may re-do this in separate PR. Operation is not a transformation:)
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.
Got it
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.
It should be TRANSFORMATIONS_API
as it regards build target, not class category.
447e18b
to
14089a2
Compare
...ormations/src/transformations/op_conversions/convert_convolution_to_convolution_internal.cpp
Outdated
Show resolved
Hide resolved
src/core/shape_inference/include/internal_convolution_shape_inference.hpp
Outdated
Show resolved
Hide resolved
template <class TOp, | ||
class TShape, | ||
class TRShape = result_shape_t<TShape>, | ||
typename std::enable_if<std::is_same<TOp, internal::Convolution>::value>::type* = nullptr> |
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 enable_if shoudl not be required just use internal::Convolution as type
...lugins/intel_cpu/tests/unit/shape_inference_test/convolution_biased_shape_inference_test.cpp
Outdated
Show resolved
Hide resolved
...lugins/intel_cpu/tests/unit/shape_inference_test/convolution_biased_shape_inference_test.cpp
Outdated
Show resolved
Hide resolved
9cbf58e
to
53607e1
Compare
a2bf6e8
to
97c687e
Compare
This PR will be closed in a week because of 2 weeks of no activity. |
acfbc8d
to
b5bd157
Compare
...ons/src/transformations/op_conversions/convert_group_convolution_to_convolution_internal.cpp
Outdated
Show resolved
Hide resolved
src/common/transformations/src/transformations/op_conversions/convolution_bias_fusion.cpp
Outdated
Show resolved
Hide resolved
src/common/transformations/src/transformations/op_conversions/convolution_bias_fusion.cpp
Outdated
Show resolved
Hide resolved
src/common/transformations/src/transformations/op_conversions/convolution_bias_fusion.cpp
Outdated
Show resolved
Hide resolved
b5114b4
to
7673915
Compare
} | ||
|
||
bool Convolution::has_groups() const { | ||
return m_groups > 0; |
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 not used can be removed
This PR will be closed in a week because of 2 weeks of no activity. |
This PR was closed because it has been stalled for 2 week with no activity. |
Details:
Tickets: