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

Add tests for untilize, transpose, and tilize on non-4B aligned row-dim Row Major tensors + enable support for these tensors on untilize #15347

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

sjameelTT
Copy link
Contributor

@sjameelTT sjameelTT commented Nov 21, 2024

Ticket

Problem description

  • Several OPs could not support RM inputs that were did not have 4B aligned rows.
  • Transpose, slice, untilize and tilize

What's changed

  • Lift the limitations on transpose, slice, untilize and tilize to enable support for odd row-dim BFP16 tensors
  • Increase transpose coverage on traces to 98.4%
  • Increase slice coverage on traces to 94.5%

Checklist

@@ -17,7 +17,6 @@ void UntilizeWithUnpadding::validate(const std::vector<Tensor>& input_tensors) c
TT_FATAL(input_tensor_a.get_layout() == Layout::TILE, "Can only untilize tile major data");

TT_FATAL(input_tensor_a.volume() % tt::constants::TILE_HW == 0, "Error");
TT_FATAL(((this->output_tensor_end[-1] + 1) % 2 == 0), "Can only unpad to row major tensor of even width");
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm so happy seeing this line go away.

@sjameelTT sjameelTT force-pushed the sjameel/to_layout_fix branch 2 times, most recently from b36462c to 96a7da9 Compare November 22, 2024 16:51
#12705: enable odd inner-dim RM bfloat16 untilize and add some unit tests
#14227: add tests for odd inner-dim RM bfloat16 transpose
#13749: unaligned RM transpose fix
- also add more failing pt 2.0 cases
@sjameelTT sjameelTT merged commit c795acc into main Nov 23, 2024
122 checks passed
@sjameelTT sjameelTT deleted the sjameel/to_layout_fix branch November 23, 2024 00:06
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