File: mapping.md

package info (click to toggle)
onnx 1.17.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 52,856 kB
  • sloc: python: 73,992; cpp: 53,539; makefile: 50; sh: 48; javascript: 1
file content (27 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
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)
```