From 792ae01541b70610a980053c5f7ee0888bb609f8 Mon Sep 17 00:00:00 2001 From: Nilaykumar Patel Date: Wed, 11 Dec 2024 06:39:06 +0000 Subject: [PATCH] Change assert condition to fatal. Signed-off-by: Nilaykumar Patel --- ttnn/cpp/ttnn/tensor/tensor_utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ttnn/cpp/ttnn/tensor/tensor_utils.cpp b/ttnn/cpp/ttnn/tensor/tensor_utils.cpp index 670be6d27c0..ef6cf99e223 100644 --- a/ttnn/cpp/ttnn/tensor/tensor_utils.cpp +++ b/ttnn/cpp/ttnn/tensor/tensor_utils.cpp @@ -74,7 +74,9 @@ Tensor create_tensor_from_owned_buffer( std::move(OwnedStorage{std::move(output_uint32_buffer)}), output_shape, output_dtype, Layout::TILE); } } else { - TT_ASSERT((output_dtype != DataType::BFLOAT8_B) || (output_dtype != DataType::BFLOAT4_B)); + TT_FATAL( + (output_dtype != DataType::BFLOAT8_B) || (output_dtype != DataType::BFLOAT4_B), + "Unsupported output datatype"); } auto rm_tensor = Tensor(std::move(OwnedStorage{std::move(buf)}), output_shape, output_dtype, Layout::ROW_MAJOR); return rm_tensor.to(Layout::TILE);