OrtModelEditorApi class final
\brief The OrtModelEditorApi struct provides functions to create or edit an ONNX model.
See onnxruntime/test/shared_lib/test_model_editor_api.cc for example usage.
\since Version 1.22.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
AddGraphToModel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModel> model, Pointer<OrtGraph> graph)> -
\brief Add an OrtGraph to an OrtModel.
getter/setter pair
-
AddInitializerToGraph
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Char> name, Pointer<OrtValue> tensor, Bool data_is_external)> -
\brief Add an initializer to the OrtGraph
getter/setter pair
-
AddNodeToGraph
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<OrtNode> node)> -
\brief Add an OrtNode to an OrtGraph
getter/setter pair
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
ApplyModelToModelEditorSession
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtModel> model)> -
\brief Apply changes to augment the ONNX model in a session created using CreateModelEditorSession
FromArraygetter/setter pair -
CreateGraph
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< graph)>OrtGraph> > -
\brief Create an OrtGraph
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.22.
getter/setter pair
-
CreateMapTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(UnsignedInt map_key_type, Pointer< >OrtTypeInfo> map_value_type, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Create an OrtTypeInfo instance for a Map.
getter/setter pair
-
CreateModel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< domain_names, Pointer<Char> >Int> opset_versions, Size opset_entries_len, Pointer<Pointer< model)>OrtModel> > -
\brief Create an OrtModel.
getter/setter pair
-
CreateModelEditorSession
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> model_path, Pointer<OrtSessionOptions> options, Pointer<Pointer< out)>OrtSession> > -
\brief Create an OrtSession to augment an existing model.
getter/setter pair
-
CreateModelEditorSessionFromArray
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Void> model_data, Size model_data_length, Pointer<OrtSessionOptions> options, Pointer<Pointer< out)>OrtSession> > -
\brief Create an OrtSession to augment an existing model.
getter/setter pair
-
CreateNode
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> operator_name, Pointer<Char> domain_name, Pointer<Char> node_name, Pointer<Pointer< input_names, Size input_names_len, Pointer<Char> >Pointer< output_names, Size output_names_len, Pointer<Char> >Pointer< attributes, Size attribs_len, Pointer<OrtOpAttr> >Pointer< node)>OrtNode> > -
\brief Create an OrtNode to add to an OrtGraph.
getter/setter pair
-
CreateOptionalTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> contained_type, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Create an OrtTypeInfo instance for an Optional.
getter/setter pair
-
CreateSequenceTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> sequence_type, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Create an OrtTypeInfo instance for a Sequence.
getter/setter pair
-
CreateSessionFromModel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<OrtModel> model, Pointer<OrtSessionOptions> options, Pointer<Pointer< out)>OrtSession> > -
\brief Create an OrtSession using the OrtModel.
getter/setter pair
-
CreateSparseTensorTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> tensor_info, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Create an OrtTypeInfo instance for a SparseTensor.
getter/setter pair
-
CreateTensorTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> tensor_info, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Create an OrtTypeInfo instance for a Tensor.
getter/setter pair
-
CreateValueInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> name, Pointer<OrtTypeInfo> type_info, Pointer<Pointer< value_info)>OrtValueInfo> > -
\brief Create an OrtValueInfo for use as an OrtGraph input or output.
getter/setter pair
-
FinalizeModelEditorSession
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtSessionOptions> options, Pointer<OrtPrepackedWeightsContainer> prepacked_weights_container)> -
\brief Finalize the Model Editor session that was created using CreateModelEditorSession
FromArray.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
SessionGetOpsetForDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Char> domain, Pointer<Int> opset)> -
\brief Query the session for the opset version of a domain.
getter/setter pair
-
SetGraphInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< inputs, Size inputs_len)>OrtValueInfo> > -
\brief Set the inputs for the OrtGraph.
getter/setter pair
-
SetGraphOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< outputs, Size outputs_len)>OrtValueInfo> > -
\brief Set the outputs for the OrtGraph.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited