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

#8633:Add TT_Fatal for full and ones op #12921

Merged
merged 1 commit into from
Sep 25, 2024
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
15 changes: 7 additions & 8 deletions ttnn/cpp/ttnn/operations/numpy/functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ static Tensor full(
if (shape.rank() < 2) {
TT_THROW("TILE layout requires rank >= 2");
}
TT_ASSERT(
shape[-1] % tt::constants::TILE_WIDTH == 0,
"TILE layout requires width dimension to be multiple of {}",
tt::constants::TILE_WIDTH);
TT_ASSERT(
shape[-2] % tt::constants::TILE_HEIGHT == 0,
"TILE layout requires height dimension to be multiple of {}",
tt::constants::TILE_HEIGHT);
TT_FATAL(
shape[-1] % tt::constants::TILE_WIDTH == 0,
"TILE layout requires width dimension to be multiple of 32");

TT_FATAL(
shape[-2] % tt::constants::TILE_HEIGHT == 0,
"TILE layout requires height dimension to be multiple of 32");
}

constexpr DataType data_type = detail::get_data_type<T>();
Expand Down
Loading