-
Notifications
You must be signed in to change notification settings - Fork 114
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
Conversation
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 = |
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.
Seems like this op was trying to encode padding info in it's output tensor, how is handled now?
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.
This computation is not needed anymore. It is now properly handled by tensor layout.
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.
Ok I'll trust you on that
### 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
Ticket
Problem description
We need to migrate all ops to use
compute_output_specs
withTensorSpec, instead of older
compute_output_shapes
What's changed
Migrated all misc ops to TensorSpec
Minor infra upgrades to support the migration.
Checklist