You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,9 @@ python -m tf2onnx.convert
139
139
[--outputs GRAPH_OUTPUS]
140
140
[--inputs-as-nchw inputs_provided_as_nchw]
141
141
[--opset OPSET]
142
+
[--tag TAG]
143
+
[--signature_def SIGNATURE_DEF]
144
+
[--concrete_function CONCRETE_FUNCTION]
142
145
[--target TARGET]
143
146
[--custom-ops list-of-custom-ops]
144
147
[--fold_const]
@@ -176,6 +179,20 @@ By default we preserve the image format of inputs (`nchw` or `nhwc`) as given in
176
179
177
180
By default we use the opset 8 to generate the graph. By specifying ```--opset``` the user can override the default to generate a graph with the desired opset. For example ```--opset 5``` would create a onnx graph that uses only ops available in opset 5. Because older opsets have in most cases fewer ops, some models might not convert on a older opset.
178
181
182
+
#### --tag
183
+
184
+
Only valid with parameter `--saved_model`. Specifies the tag in the saved_model to be used. Typical value is 'serve'.
185
+
186
+
#### --signature_def
187
+
188
+
Only valid with parameter `--saved_model`. Specifies which signature to use within the specified --tag value. Typical value is 'serving_default'.
189
+
190
+
#### --concrete_function
191
+
192
+
(This is experimental, valid only for TF2.x models)
193
+
194
+
Only valid with parameter `--saved_model`. If a model contains a list of concrete functions, under the function name `__call__` (as can be viewed using the command `saved_model_cli show --all`), this parameter is a 0-based integer specifying which function in that list should be converted. This parameter takes priority over `--signature_def`, which will be ignored.
195
+
179
196
#### --target
180
197
181
198
Some models require special handling to run on some runtimes. In particular, the model may use unsupported data types. Workarounds are activated with ```--target TARGET```. Currently supported values are listed on this [wiki](https://github.com/onnx/tensorflow-onnx/wiki/target). If your model will be run on Windows ML, you should specify the appropriate target value.
0 commit comments