heterocl.types¶
|
The base class for all data types |
|
Arbitrary-bit signed integers |
|
Arbitrary-bit unsigned integers |
|
Arbitrary-bit signed fixed points |
|
Arbitrary-bit unsigned fixed points |
|
Floating points |
|
Convert a data type to Heterocl type. |
|
Convert a data type to string format. |
|
Get the bitwidth of a given data type. |
Get the fractional bitwidth of a given data type. |
-
class
Type
(bits=32, fracs=0)[source]¶ The base class for all data types
The default bitwidth is 32 and no fractional bit.
-
class
UFixed
(bits=32, fracs=0)[source]¶ Bases:
heterocl.types.Type
Arbitrary-bit unsigned fixed points
-
dtype_to_str
(dtype)[source]¶ Convert a data type to string format.
This method is mainly for TVM APIs.