We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9068bbc + 6930bf2 commit be02c1fCopy full SHA for be02c1f
python/torch_mlir/extras/fx_importer.py
@@ -220,6 +220,10 @@
220
}
221
if ml_dtypes is not None:
222
TORCH_DTYPE_TO_NPY_TYPE[torch.bfloat16] = ml_dtypes.bfloat16
223
+ TORCH_DTYPE_TO_NPY_TYPE[torch.float8_e5m2] = ml_dtypes.float8_e5m2
224
+ TORCH_DTYPE_TO_NPY_TYPE[torch.float8_e4m3fn] = ml_dtypes.float8_e4m3fn
225
+ TORCH_DTYPE_TO_NPY_TYPE[torch.float8_e5m2fnuz] = ml_dtypes.float8_e5m2fnuz
226
+ TORCH_DTYPE_TO_NPY_TYPE[torch.float8_e4m3fnuz] = ml_dtypes.float8_e4m3fnuz
227
228
TORCH_DTYPE_TO_INT = {
229
torch.uint8: 0,
0 commit comments