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

#15075: Adding assert for completely invalid reshapes #15846

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

jvegaTT
Copy link
Contributor

@jvegaTT jvegaTT commented Dec 9, 2024

Ticket

#15075

Problem description

We add a validation check for reshape when the volumes do not match as the embedding issue preventing this is now solved

We deleted the reshape host fallback code that is no longer needed

Checklist

@@ -52,36 +52,6 @@ ttnn::Tensor convert_tile_to_rm(
(tensor.get_dtype() == DataType::BFLOAT8_B) ? ttnn::typecast(new_tensor, tensor.get_dtype()) : new_tensor;
return new_tensor;
}
ttnn::Tensor host_reshape(const ttnn::Tensor& tensor, const ttnn::Shape& shape) {
Copy link
Contributor

Choose a reason for hiding this comment

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

So happy to see this removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RIP - it won't be missed

@ntarafdar
Copy link
Contributor

Lets go , reshape is pretty much perfect

@ntarafdar ntarafdar self-requested a review December 9, 2024 21:25
@ntarafdar
Copy link
Contributor

once this passes pipelines lets get this in :)

@jvegaTT jvegaTT changed the title Atulk/incorrect reshape assert #15075: Adding assert for completely invalid reshapes Dec 10, 2024
@jvegaTT jvegaTT merged commit 3b12f76 into main Dec 10, 2024
119 checks passed
@jvegaTT jvegaTT deleted the atulk/incorrect-reshape-assert branch December 10, 2024 16:30
rdjogoTT pushed a commit that referenced this pull request Dec 10, 2024
### Ticket
#15075

### Problem description
We add a validation check for reshape when the volumes do not match as
the embedding issue preventing this is now solved

We deleted the reshape host fallback code that is no longer needed


### Checklist
- [x] Post commit CI passes
https://github.com/tenstorrent/tt-metal/actions/runs/12190290996
- [ ] Blackhole Post commit (if applicable)
- [ ] Model regression CI testing passes (if applicable)
- [ ] Device performance regression CI testing passes (if applicable)
- [ ] **(For models and ops writers)** Full [new
models](https://github.com/tenstorrent/tt-metal/actions/workflows/full-new-models-suite.yaml)
tests passes
- [ ] New/Existing tests provide coverage for changes

---------

Co-authored-by: yugi957 <[email protected]>
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.

3 participants