Skip to content
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

Refactor conv2d op and add conv2d config support #2054

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jserbedzijaTT
Copy link
Contributor

Copy link
Contributor

@odjuricicTT odjuricicTT left a comment

Choose a reason for hiding this comment

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

Awesome! Will take a look on Monday.

test/ttmlir/Silicon/TTNN/perf_unit/test_perf_conv2d.mlir Outdated Show resolved Hide resolved
@jserbedzijaTT jserbedzijaTT force-pushed the jserbedzija/add_conv2d_config branch 3 times, most recently from c4d787f to c64caa0 Compare February 3, 2025 14:55
@nsmithtt nsmithtt requested a review from LPanosTT February 3, 2025 19:57
@jserbedzijaTT jserbedzijaTT force-pushed the jserbedzija/add_conv2d_config branch 3 times, most recently from 72c7bc9 to 3eef128 Compare February 4, 2025 13:48
Copy link
Contributor

@LPanosTT LPanosTT left a comment

Choose a reason for hiding this comment

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

This is great, thanks for doing this!

@jserbedzijaTT jserbedzijaTT force-pushed the jserbedzija/add_conv2d_config branch 4 times, most recently from e92eea5 to c52e15d Compare February 5, 2025 15:50
Copy link
Contributor

@sdjordjevicTT sdjordjevicTT left a comment

Choose a reason for hiding this comment

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

Great change, thanks Joco!

include/ttmlir/Dialect/TTNN/IR/TTNNOps.td Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/IR/TTNNOpsAttrs.td Outdated Show resolved Hide resolved
@jserbedzijaTT jserbedzijaTT force-pushed the jserbedzija/add_conv2d_config branch from c52e15d to 85e6bf6 Compare February 5, 2025 17:09
Copy link
Contributor

@odjuricicTT odjuricicTT left a comment

Choose a reason for hiding this comment

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

Looks good from my side as well!

@jserbedzijaTT jserbedzijaTT force-pushed the jserbedzija/add_conv2d_config branch from 85e6bf6 to f33a304 Compare February 6, 2025 14:36
config.weights_dtype = utils::getDataType(op->weight());

std::array<uint32_t, 2> kernelSize, stride, padding, dilation;
std::copy_n(op->kernel_size()->begin(), 2, kernelSize.begin());
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add some asserts here like we did for convTranspose2D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TTNN Dialect] Conv2d op missing some optional parameters
5 participants