-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement reduction avg op end to end #271
Conversation
// CHECK: %[[C:.*]] = "ttnn.full"[[C:.*]] | ||
%0 = tensor.empty() : tensor<512x32xbf16> | ||
// CHECK: %[[C:.*]] = "ttnn.to_memory_config"[[C:.*]] | ||
// CHECK: %[[C:.*]] = "ttnn.sum"[[C:.*]] |
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 this check be ttnn.avg
?
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.
Right, my bad.
3995fc7
to
e1a68d0
Compare
@dgolubovicTT did all CI jobs pass for this? When building locally I'm seeing this error: /localdev/jnie/tt-mlir/runtime/lib/ttnn/program.cpp:210:34: error: no member named 'avg' in namespace 'ttnn'
210 | tensorPool.push_back(::ttnn::avg(in, dim_arg, op->keep_dim()));
| ~~~~~~~~^
1 error generated.
[166/185] Building CXX object python/CMakeFiles/TTMLIRPythonModules.extension._ttmlir.dso.dir/TTModule.cpp.o
ninja: build stopped: subcommand failed. |
This reverts commit 1ddbd0e due to build break.
Seems not. I will revert this one until I solve it. Sorry for that one, still getting used to github pipelines. |
Solves #243. Implement avg reduction through TTIR, TTNN dialects and generate flat buffers. Add mapping between dialects for avg op.Add simple_avg.mlir test.