6 TensorProtoDataType = _C._onnx.TensorProtoDataType
7 OperatorExportTypes = _C._onnx.OperatorExportTypes
8 PYTORCH_ONNX_CAFFE2_BUNDLE = _C._onnx.PYTORCH_ONNX_CAFFE2_BUNDLE
10 ONNX_ARCHIVE_MODEL_PROTO_NAME =
"__MODEL_PROTO" 16 COMPRESSED_ZIP_ARCHIVE = 3
20 def _export(*args, **kwargs):
22 return utils._export(*args, **kwargs)
25 def export(*args, **kwargs):
27 return utils.export(*args, **kwargs)
30 def export_to_pretty_string(*args, **kwargs):
32 return utils.export_to_pretty_string(*args, **kwargs)
35 def _export_to_pretty_string(*args, **kwargs):
37 return utils._export_to_pretty_string(*args, **kwargs)
40 def _optimize_trace(trace, operator_export_type):
42 trace.set_graph(utils._optimize_graph(trace.graph(), operator_export_type))
45 def set_training(*args, **kwargs):
47 return utils.set_training(*args, **kwargs)
50 def _run_symbolic_function(*args, **kwargs):
52 return utils._run_symbolic_function(*args, **kwargs)
55 def _run_symbolic_method(*args, **kwargs):
57 return utils._run_symbolic_method(*args, **kwargs)