Skip to content

Commit

Permalink
Re-order reshape and device upload
Browse files Browse the repository at this point in the history
  • Loading branch information
omilyutin-tt committed Dec 11, 2024
1 parent 8e49222 commit 4e78614
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/tt_eager/ops/test_tilize_zero_padding_channels_last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ int main(int argc, char** argv) {
////////////////////////////////////////////////////////////////////////////
ttnn::SimpleShape shape{1, 32, 61, 32};
// Allocates a DRAM buffer on device populated with values specified by initialize
Tensor a = ttnn::arange(/*start=*/0, /*stop=*/shape.volume(), /*step=*/1, DataType::BFLOAT16, std::ref(*device))
.reshape(shape);
Tensor a = ttnn::arange(/*start=*/0, /*stop=*/shape.volume(), /*step=*/1, DataType::BFLOAT16)
.reshape(shape)
.to(device);
Tensor b = ttnn::tilize_with_zero_padding(a);
Tensor c = b.cpu();
////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 4e78614

Please sign in to comment.