You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
TTNN typecast operation fails with the following message when the tensor is present on the host:
2024-12-23 14:17:39,026 - ERROR - ERROR: test=/__w/tt-mlir/tt-mlir/build/test/ttmlir/Silicon/TTNN/embedding/Output/simple_embedding.mlir.tmp.ttnn experienced an error with exception=TT_THROW @ /__w/tt-mlir/tt-mlir/third_party/tt-metal/src/tt-metal/ttnn/cpp/ttnn/tensor/tensor.hpp:329: tt::exception
info:
Cannot get the device from a tensor with host storage
The test should fail with the following exception:
Always | FATAL | Cannot get the device from a tensor with host storage
Traceback (most recent call last):
File "/localdev/sdjordjevic/src/tt-metal/python_test.py", line 9, in <module>
ttnn_tensor = ttnn.typecast(ttnn_tensor_cpu, dtype=ttnn.uint32)
File "/localdev/sdjordjevic/src/tt-metal/ttnn/ttnn/decorators.py", line 329, in __call__
return self.function(*function_args, **function_kwargs)
RuntimeError: TT_THROW @ /localdev/sdjordjevic/src/tt-metal/ttnn/cpp/ttnn/tensor/tensor.hpp:329: tt::exception
info:
Cannot get the device from a tensor with host storage
backtrace:
Expected behavior
Expected behavior should not be the failure, the typecast op should under the hood do the conversion on the host.
Screenshots
/
Please complete the following environment information:
OS: both Ubuntu 20 and Ubuntu 22
Version of software: latest main
Additional context
Instead of using the typecast op, we can use to_dtype to convert on the host, but I believe that the semantics of typecast should cover this case as well.
The text was updated successfully, but these errors were encountered:
Hi @sjameelTT, we are currently facing this issue with our MLIR-based compiler. @jnie-TT mentioned that you spoke with him and have plans to improve the typecast operation to support casting on the host. I've created this issue so we can track our progress on this matter.
Describe the bug
TTNN typecast operation fails with the following message when the tensor is present on the host:
To Reproduce
Steps to reproduce the behavior:
The test should fail with the following exception:
Expected behavior
Expected behavior should not be the failure, the typecast op should under the hood do the conversion on the host.
Screenshots
/
Please complete the following environment information:
Additional context
Instead of using the typecast op, we can use to_dtype to convert on the host, but I believe that the semantics of typecast should cover this case as well.
The text was updated successfully, but these errors were encountered: