@@ -332,6 +332,9 @@ def from_keras(model, input_signature=None, opset=None, custom_ops=None, custom_
332
332
model: the tf.keras model we want to convert
333
333
input_signature: a tf.TensorSpec or a numpy array defining the shape/dtype of the input
334
334
opset: the opset to be used for the ONNX model, default is the latest
335
+ custom_ops: if a model contains ops not recognized by onnx runtime,
336
+ you can tag these ops with a custom op domain so that the
337
+ runtime can still open the model. Type is a dictionary `{op name: domain}`.
335
338
target: list of workarounds applied to help certain platforms
336
339
custom_op_handlers: dictionary of custom ops handlers
337
340
custom_rewriter: list of custom graph rewriters
@@ -417,6 +420,9 @@ def from_function(function, input_signature=None, opset=None, custom_ops=None, c
417
420
function: the tf.function we want to convert
418
421
input_signature: a tf.TensorSpec or a numpy array defining the shape/dtype of the input
419
422
opset: the opset to be used for the ONNX model, default is the latest
423
+ custom_ops: if a model contains ops not recognized by onnx runtime,
424
+ you can tag these ops with a custom op domain so that the
425
+ runtime can still open the model. Type is a dictionary `{op name: domain}`.
420
426
target: list of workarounds applied to help certain platforms
421
427
custom_op_handlers: dictionary of custom ops handlers
422
428
custom_rewriter: list of custom graph rewriters
@@ -478,6 +484,9 @@ def from_graph_def(graph_def, name=None, input_names=None, output_names=None, op
478
484
output_names: list of output names
479
485
name: A name for the graph
480
486
opset: the opset to be used for the ONNX model, default is the latest
487
+ custom_ops: if a model contains ops not recognized by onnx runtime,
488
+ you can tag these ops with a custom op domain so that the
489
+ runtime can still open the model. Type is a dictionary `{op name: domain}`.
481
490
target: list of workarounds applied to help certain platforms
482
491
custom_op_handlers: dictionary of custom ops handlers
483
492
custom_rewriter: list of custom graph rewriters
0 commit comments