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

Implement reduction avg op end to end #271

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

dgolubovicTT
Copy link
Contributor

@dgolubovicTT dgolubovicTT commented Aug 1, 2024

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.

// CHECK: %[[C:.*]] = "ttnn.full"[[C:.*]]
%0 = tensor.empty() : tensor<512x32xbf16>
// CHECK: %[[C:.*]] = "ttnn.to_memory_config"[[C:.*]]
// CHECK: %[[C:.*]] = "ttnn.sum"[[C:.*]]
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, my bad.

@dgolubovicTT dgolubovicTT force-pushed the dgolubovic/imp-reduction-avg-op branch from 3995fc7 to e1a68d0 Compare August 2, 2024 09:35
@dgolubovicTT dgolubovicTT merged commit 1ddbd0e into main Aug 2, 2024
2 of 4 checks passed
@jnie-TT
Copy link
Contributor

jnie-TT commented Aug 2, 2024

@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.

dgolubovicTT added a commit that referenced this pull request Aug 2, 2024
This reverts commit 1ddbd0e due to build break.
@dgolubovicTT
Copy link
Contributor Author

Seems not. I will revert this one until I solve it. Sorry for that one, still getting used to github pipelines.

dgolubovicTT added a commit that referenced this pull request Aug 2, 2024
dgolubovicTT added a commit that referenced this pull request Aug 2, 2024
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.

4 participants