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

#7625: Enable multicore for tilize with padding by default #8527

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ttnn/cpp/ttnn/op_library/to_layout/to_layout_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ Tensor execute(

} else if (layout == ttnn::TILE_LAYOUT) {
tensor = unsqueeze_to_4D(tensor);
bool use_multicore = true;
std::vector<uint32_t> padded_4D_output_shape;
padded_4D_output_shape.push_back(tensor.get_shape()[-4]);
padded_4D_output_shape.push_back(tensor.get_shape()[-3]);
padded_4D_output_shape.push_back(ttnn::pad_to_multiple_of_tile_size(tensor.get_shape()[-2]));
padded_4D_output_shape.push_back(ttnn::pad_to_multiple_of_tile_size(tensor.get_shape()[-1]));
tensor =
tt::tt_metal::tilize_with_val_padding(tensor, padded_4D_output_shape, 0, output_memory_config, dtype);
tensor = tt::tt_metal::tilize_with_val_padding(
tensor, padded_4D_output_shape, 0, output_memory_config, dtype, use_multicore);
return reshape(tensor, ttnn::Shape(tt::tt_metal::Shape{output_shape, padded_output_shape}));

} else {
Expand Down
Loading