-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix maxpool2d signature + add emitc conversion&test #2385
Conversation
@@ -1246,16 +1246,31 @@ class MaxPool2dOpConversionPattern | |||
outputType.getElementType(), | |||
outputType.getEncoding()); | |||
|
|||
DenseI32ArrayAttr kernelSizeAttr = rewriter.getDenseI32ArrayAttr( | |||
{static_cast<int32_t>(adaptor.getKernelHeight()), |
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.
Shouldn't all of these already be int32_t
?
std::array{op->dilation_height(), op->dilation_width()}, | ||
outputMemoryConfig, std::nullopt); | ||
op->channels(), kernelSize, stride, padding, dilation, std::nullopt, | ||
std::nullopt, op->ceil_mode()); |
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.
Nit: add parameter names for std::nullopt
.
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.
Great!
@jnie-TT @kmabeeTT @AleksKnezevic leaving for a week-long vacation today, would be great if I could check this in before that, need your approval for the |
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.
Runtime looks good to my eyes, have a good time off!
### Ticket #2328 ### Problem description Maxpool2d is not supported thru emitc. ### What's changed - Changed MaxPool2d signature in TTNN dialect to match signature of lib. - Added conversion TTNN->EmitC - Added test ### Checklist - [x] New/Existing tests provide coverage for changes
Ticket
#2328
Problem description
Maxpool2d is not supported thru emitc.
What's changed
Checklist