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

Make ttnn.mean support torch.mean(tensor) #12170

Closed
jdh8 opened this issue Sep 3, 2024 · 2 comments
Closed

Make ttnn.mean support torch.mean(tensor) #12170

jdh8 opened this issue Sep 3, 2024 · 2 comments
Assignees

Comments

@jdh8
Copy link
Contributor

jdh8 commented Sep 3, 2024

We're trying to compile aten.mean.default(tensor), the lowered IR of torch.mean(tensor), in tenstorrent/pytorch2.0_ttnn#144. To support this conversion, we need any of the following:

  • Support keepdim=False for ttnn.mean
@jdh8 jdh8 added the feature-request External feature request label Sep 3, 2024
@bbradelTT bbradelTT assigned bbradelTT and unassigned eyonland Dec 20, 2024
bbradelTT added a commit that referenced this issue Dec 20, 2024
### Ticket
Link to Github Issue
#12662
#14898
#13361
#12170

### Problem description
- padding caused issues for max
- keepdim=False errored out

### What's changed
- remove the erroring out of keepdim=False and adjust code to handle
keepdim=False properly
- adding padding within min/max to ensure that it's set up properly has
been pushed back to a future PR

### Checklist
- [x] Post commit CI passes
https://github.com/tenstorrent/tt-metal/actions/runs/12432801168
- [x] Blackhole Post commit (if applicable)
https://github.com/tenstorrent/tt-metal/actions/runs/12423085751
- [x] Model regression CI testing passes (if applicable)
https://github.com/tenstorrent/tt-metal/actions/runs/12423092106 same as
main
https://github.com/tenstorrent/tt-metal/actions/runs/12422179419/job/34683976776
- [x] Device performance regression CI testing passes (if applicable)
https://github.com/tenstorrent/tt-metal/actions/runs/12423088573
- [ ] **(For models and ops writers)** Full [new
models](https://github.com/tenstorrent/tt-metal/actions/workflows/full-new-models-suite.yaml)
tests passes
- [x] New/Existing tests provide coverage for changes
@bbradelTT
Copy link
Contributor

@jdh8 I just merged in support for keepdim=False. Could you please with latest main and let me know whether what's currently there supports your needs or which cases are not working?

You may need to use Release build to avoid some asserts.

@bbradelTT
Copy link
Contributor

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants