1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
(l-mod-onnx-mapping)=
# onnx.mapping
This module defines the correspondence between onnx numerical types
and numpy numerical types. This information can be accessed
through attribute {ref}`l-onnx-types-mapping` or through the functions
defined in {ref}`l-mod-onnx-helper`.
## TensorDtypeMap
```{eval-rst}
.. autoclass:: onnx.mapping.TensorDtypeMap
```
(l-onnx-types-mapping)=
## TENSOR_TYPE_MAP
```{eval-rst}
.. exec_code::
import pprint
from onnx.mapping import TENSOR_TYPE_MAP
pprint.pprint(TENSOR_TYPE_MAP)
```
|