You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We strive to have our codebase as clean and readable as possible. A recent PR introduced MaxPool-14, which is different from MaxPool-1 only in selectable values of RoundingType. The rest of the implementation stays the same, which means a lot of code is duplicated.
That duplicated code can be merged into an AvgPoolBase class, which then can be used in MaxPool-1 and MaxPool-14.
What needs to be done?
Create AvgPoolBase class.
Move the common functionality from AvgPool-1 and AvgPool-14 into it - it should be pretty much everything, since the only change in AvgPool-14 is a new value selectable in ov::op::RoundingType enum.
Use the AvgPoolBase class to implement AvgPool-1 and AvgPool-14 without unnecessary code dupliaction.
Take a look at MaxPoolBase - maybe it's possible to simplify both even further? Let us know about any ideas that you have. Some exploration may be required, since there are some slight differences in attributes between MaxPool and AvgPool.
Example Pull Requests
There are no example PRs since this task is a refactor, but here are some related PRs:
Context
We strive to have our codebase as clean and readable as possible. A recent PR introduced
MaxPool-14
, which is different fromMaxPool-1
only in selectable values ofRoundingType
. The rest of the implementation stays the same, which means a lot of code is duplicated.That duplicated code can be merged into an
AvgPoolBase
class, which then can be used inMaxPool-1
andMaxPool-14
.What needs to be done?
AvgPoolBase
class.AvgPool-1
andAvgPool-14
into it - it should be pretty much everything, since the only change inAvgPool-14
is a new value selectable inov::op::RoundingType
enum.AvgPoolBase
class to implementAvgPool-1
andAvgPool-14
without unnecessary code dupliaction.MaxPoolBase
- maybe it's possible to simplify both even further? Let us know about any ideas that you have. Some exploration may be required, since there are some slight differences in attributes betweenMaxPool
andAvgPool
.Example Pull Requests
There are no example PRs since this task is a refactor, but here are some related PRs:
CEIL_TORCH
#22930Resources
Contact points
@p-wysocki
@praasz
@mitruska
Ticket
135527
The text was updated successfully, but these errors were encountered: