4. Data types
Currently, PopXL supports the data types listed in Table 4.1.
These data types are defined in popxl directly and
will be converted to their IPU-compatible data type. Note that if the session option popart.SessionOptions.enableSupportedDataTypeCasting is set to True, then int64
and uint64 will be downcast to int32 and uint32, respectively.
PopXL dtype |
int |
floating point |
signed |
NumPy dtype |
Python dtype |
alias |
|---|---|---|---|---|---|---|
|
False |
False |
False |
bool |
builtins.bool |
N/A |
|
True |
False |
True |
int8 |
None |
N/A |
|
True |
False |
True |
int32 |
None |
N/A |
|
True |
False |
False |
uint8 |
None |
N/A |
|
True |
False |
False |
uint32 |
None |
N/A |
|
False |
True |
True |
float16 |
None |
|
|
False |
True |
True |
float32 |
builtins.float |
|
|
False |
True |
True |
float64 |
None |
|