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

#0: Port all Misc ops to use TensorSpec #15509

Merged
merged 8 commits into from
Dec 4, 2024
Merged

Conversation

sminakov-tt
Copy link
Contributor

@sminakov-tt sminakov-tt commented Nov 27, 2024

Ticket

Problem description

We need to migrate all ops to use compute_output_specs with
TensorSpec, instead of older compute_output_shapes

What's changed

Migrated all misc ops to TensorSpec
Minor infra upgrades to support the migration.

Checklist

@sminakov-tt sminakov-tt changed the title #0: Port all misc ops to tensorspec #0: Port all Misc ops to TensorSpec Nov 27, 2024
@sminakov-tt sminakov-tt changed the title #0: Port all Misc ops to TensorSpec #0: Port all Misc ops to use TensorSpec Nov 27, 2024
@sminakov-tt sminakov-tt marked this pull request as ready for review November 27, 2024 19:58
ceil((double)img_width / (double)img_stride_w);
uint32_t output_height = tt::round_up(output_height_unpadded, TILE_HEIGHT);
uint32_t output_width = input_tensor_a.get_legacy_shape()[3];
auto output_padding =
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like this op was trying to encode padding info in it's output tensor, how is handled now?

Copy link
Member

Choose a reason for hiding this comment

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

This computation is not needed anymore. It is now properly handled by tensor layout.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I'll trust you on that

@sminakov-tt sminakov-tt merged commit d0a192d into main Dec 4, 2024
14 checks passed
@sminakov-tt sminakov-tt deleted the sminakov/tensorspec-2 branch December 4, 2024 17:00
yieldthought pushed a commit that referenced this pull request Dec 13, 2024
### Ticket

### Problem description
We need to migrate all ops to use `compute_output_specs` with
TensorSpec, instead of older `compute_output_shapes`

### What's changed
Migrated all misc ops to TensorSpec
Minor infra upgrades to support the migration.

### Checklist
- [x] [Post commit CI
passes](https://github.com/tenstorrent/tt-metal/actions/runs/12057375995)
- [x] [(Single-card) Demo
tests](https://github.com/tenstorrent/tt-metal/actions/runs/12133160610)
- [x] [(Single-card) Model perf
tests](https://github.com/tenstorrent/tt-metal/actions/runs/12133156506)
- [x] [(Single-card) Device perf
regressions](https://github.com/tenstorrent/tt-metal/actions/runs/12146782009)
- [x] New/Existing tests provide coverage for changes
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.

6 participants