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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
(l-mod-onnx-helper)=
# onnx.helper
```{eval-rst}
.. currentmodule:: onnx.helper
```
(l-onnx-make-function)=
## Helper functions to make ONNX graph components
All functions used to create an ONNX graph.
```{eval-rst}
.. autofunction:: onnx.helper.make_attribute
```
```{eval-rst}
.. autofunction:: onnx.helper.make_attribute_ref
```
```{eval-rst}
.. autofunction:: onnx.helper.make_empty_tensor_value_info
```
```{eval-rst}
.. autofunction:: onnx.helper.make_function
```
```{eval-rst}
.. autofunction:: onnx.helper.make_graph
```
```{eval-rst}
.. autofunction:: onnx.helper.make_map
```
```{eval-rst}
.. autofunction:: onnx.helper.make_map_type_proto
```
```{eval-rst}
.. autofunction:: onnx.helper.make_model
```
```{eval-rst}
.. autofunction:: onnx.helper.make_node
```
```{eval-rst}
.. autofunction:: onnx.helper.make_operatorsetid
```
```{eval-rst}
.. autofunction:: onnx.helper.make_opsetid
```
```{eval-rst}
.. autofunction:: onnx.helper.make_model_gen_version
```
```{eval-rst}
.. autofunction:: onnx.helper.make_optional
```
```{eval-rst}
.. autofunction:: onnx.helper.make_optional_type_proto
```
```{eval-rst}
.. autofunction:: onnx.helper.make_sequence
```
```{eval-rst}
.. autofunction:: onnx.helper.make_sequence_type_proto
```
```{eval-rst}
.. autofunction:: onnx.helper.make_sparse_tensor
```
```{eval-rst}
.. autofunction:: onnx.helper.make_sparse_tensor_type_proto
```
```{eval-rst}
.. autofunction:: onnx.helper.make_sparse_tensor_value_info
```
```{eval-rst}
.. autofunction:: onnx.helper.make_tensor
```
```{eval-rst}
.. autofunction:: onnx.helper.make_tensor_sequence_value_info
```
```{eval-rst}
.. autofunction:: onnx.helper.make_tensor_type_proto
```
```{eval-rst}
.. autofunction:: onnx.helper.make_training_info
```
```{eval-rst}
.. autofunction:: onnx.helper.make_tensor_value_info
```
```{eval-rst}
.. autofunction:: onnx.helper.make_value_info
```
## Type Mappings
```{eval-rst}
.. autofunction:: onnx.helper.get_all_tensor_dtypes
```
```{eval-rst}
.. autofunction:: onnx.helper.np_dtype_to_tensor_dtype
```
```{eval-rst}
.. autofunction:: onnx.helper.tensor_dtype_to_field
```
```{eval-rst}
.. autofunction:: onnx.helper.tensor_dtype_to_np_dtype
```
```{eval-rst}
.. autofunction:: onnx.helper.tensor_dtype_to_storage_tensor_dtype
```
```{eval-rst}
.. autofunction:: onnx.helper.tensor_dtype_to_string
```
## Tools
```{eval-rst}
.. autofunction:: onnx.helper.find_min_ir_version_for
```
## Other functions
```{eval-rst}
.. autosummary::
get_attribute_value
get_node_attr_value
set_metadata_props
set_model_props
printable_attribute
printable_dim
printable_graph
printable_node
printable_tensor_proto
printable_type
printable_value_info
```
|