Closed jcasas00 closed 2 years ago
The dtype_to_hcl
and dtype_to_str
API did not support MLIR type input. This is added by this commit in the front-end:
cornell-zhang/heterocl@acbf6ef3225a2410b7ab7a52017f1b9e434cc062
This issue will be closed after test cases are added.
The test case is added at mlir/test_dsl_basic.py::test_tensor_slice_dtype
by commit cornell-zhang/heterocl@1201426cc327b09e94ef0999a2cb6b16fa65a1f9
Running the following code:
File "/home/jcasas/dprive/projects.research.advis-mlir/python/advis/designlib/test_slice.py", line 12, in do t4 = hcl.get_bitwidth(t.dtype) File "/home/jcasas/dprive/heterocl_mlir/python/heterocl/types.py", line 190, in get_bitwidth dtype = dtype_to_hcl(dtype) File "/home/jcasas/dprive/heterocl_mlir/python/heterocl/types.py", line 175, in dtype_to_hcl raise DTypeError("Unrecognized data type format") heterocl.debug.DTypeError: [Data Type] Unrecognized data type format