Dates are in YYYY-MM-DD format.
SynchronizedList
instances, and would therefore be modified if nodes in the graph were.remove_unused_node_outputs
in cleanup()
to False
, as a value of True
can lead to unintuitive behavior, especially with looping constructs like Scan
and Loop
.graph.tensors()
would cause the inputs or outputs of some tensors to be modified.SynchronizedList.__add__()
no longer modifies the left operand.fold_constants()
will no longer fail if there is nothing to fold in the graphcleanup()
will now properly remove the producer nodes of graph inputs.Graph.register()
now accepts an opsets
argument so that functions can be registered for specific opsets.has_metadata
has been removed from Tensor
, since the function is no longer used.opset
was not being considering when running inference for constant folding.layer()
function to Graph
to make it easier to generate models from scratchi()
and o()
convenience functions to Tensor
, which are similar to the functions for Node
, but return Tensor
s instead of Node
sexamples
directoryhas_metadata()
to Tensor
classes to determine if dtype/shape are known.check_duplicates
parameter to Graph.tensors()
to make it easy to check for duplicate tensors in the graph.OnnxImporter
so that it can correctly import shapes and types from an ONNX graph after shape inference.Tensor
an abstract class - all tensors in a graph are now either Variable
or Constant
generate_tensor_map()
to tensors()
in Graph
Tensor
suffix from Tensor classes.import_onnx
and export_onnx
functions will now preserve opset information and dim_param
values in shapes.i()
and o()
convenience functions to Node
for retrieving input/output nodes.fold_constants()
to Graph
to allow for folding constants in the graph.__deepcopy__()
to Graph
.to_constant()
and to_variable()
functions to Variable
and Constant
respectively to transmute them in-place.Node
, Tensor
and Graph
classes.BaseImporter
and OnnxImporter
classes.OnnxImporter
Variable
and Constant
Node
s.OnnxExporter
to export Graph
to onnx.GraphProto
OnnxExporter
and OnnxImporter
to public importstoposort
function to Graph
, which will topologically sort it.cleanup
function to Graph
, which will remove unused nodes and tensors.Graph
s from/to ONNX models.Graph
s are now generated with a default name of onnx_graphsurgeon