Skip to content

[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

Closed
wants to merge 2 commits into from

Conversation

aobolensk
Copy link
Contributor

@aobolensk aobolensk commented Feb 19, 2025

Details:

  • Move convolution with bias transformation from CPU graph optimizer to transformations

Tickets:

  • N/A

@github-actions github-actions bot added category: CPU OpenVINO CPU plugin category: transformations OpenVINO Runtime library - Transformations labels Feb 19, 2025
@github-actions github-actions bot added the category: Core OpenVINO Core (aka ngraph) label Feb 21, 2025
@aobolensk aobolensk force-pushed the fuse-bias branch 9 times, most recently from 2c87699 to ce6fcca Compare February 27, 2025 19:51
@aobolensk aobolensk marked this pull request as ready for review February 27, 2025 20:05
@aobolensk aobolensk requested review from a team as code owners February 27, 2025 20:05
@aobolensk aobolensk requested review from itikhono and removed request for a team February 27, 2025 20:05
@CuriousPanCake
Copy link
Contributor

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 {
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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:)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it

Copy link
Contributor

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.

@aobolensk aobolensk force-pushed the fuse-bias branch 4 times, most recently from 447e18b to 14089a2 Compare March 12, 2025 15:13
template <class TOp,
class TShape,
class TRShape = result_shape_t<TShape>,
typename std::enable_if<std::is_same<TOp, internal::Convolution>::value>::type* = nullptr>
Copy link
Contributor

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

@aobolensk aobolensk force-pushed the fuse-bias branch 2 times, most recently from 9cbf58e to 53607e1 Compare March 17, 2025 08:11
@github-actions github-actions bot removed the category: GPU OpenVINO GPU plugin label Mar 17, 2025
@aobolensk aobolensk force-pushed the fuse-bias branch 3 times, most recently from a2bf6e8 to 97c687e Compare March 21, 2025 08:36
Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label Apr 14, 2025
@aobolensk aobolensk force-pushed the fuse-bias branch 3 times, most recently from acfbc8d to b5bd157 Compare April 17, 2025 17:22
@github-actions github-actions bot removed the Stale label Apr 18, 2025
@aobolensk aobolensk force-pushed the fuse-bias branch 2 times, most recently from b5114b4 to 7673915 Compare April 28, 2025 13:18
}

bool Convolution::has_groups() const {
return m_groups > 0;
Copy link
Contributor

@praasz praasz May 7, 2025

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

Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label May 22, 2025
Copy link
Contributor

This PR was closed because it has been stalled for 2 week with no activity.

@github-actions github-actions bot closed this May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph) category: CPU OpenVINO CPU plugin category: docs OpenVINO documentation category: transformations OpenVINO Runtime library - Transformations Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants