Package onnx
Class Onnx.ModelProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
onnx.Onnx.ModelProto
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Onnx.ModelProtoOrBuilder
- Enclosing class:
- Onnx
public static final class Onnx.ModelProto
extends com.google.protobuf.GeneratedMessageV3
implements Onnx.ModelProtoOrBuilder
Models ModelProto is a top-level file/container format for bundling a ML model and associating its computation graph with metadata. The semantics of the model are described by the associated GraphProto's.Protobuf type
onnx.ModelProto- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classModels ModelProto is a top-level file/container format for bundling a ML model and associating its computation graph with metadata.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final com.google.protobuf.Parser<Onnx.ModelProto>Deprecated.static final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Onnx.ModelProtostatic final com.google.protobuf.Descriptors.DescriptorA human-readable documentation for this model.com.google.protobuf.ByteStringA human-readable documentation for this model.Domain name of the model.com.google.protobuf.ByteStringDomain name of the model.getFunctions(int index) A list of function protos local to the model.intA list of function protos local to the model.A list of function protos local to the model.getFunctionsOrBuilder(int index) A list of function protos local to the model.List<? extends Onnx.FunctionProtoOrBuilder>A list of function protos local to the model.getGraph()The parameterized graph that is evaluated to execute the model.The parameterized graph that is evaluated to execute the model.longThe version of the IR this model targets.getMetadataProps(int index) Named metadata values; keys should be distinct.intNamed metadata values; keys should be distinct.Named metadata values; keys should be distinct.getMetadataPropsOrBuilder(int index) Named metadata values; keys should be distinct.List<? extends Onnx.StringStringEntryProtoOrBuilder>Named metadata values; keys should be distinct.longThe version of the graph encoded.getOpsetImport(int index) The OperatorSets this model relies on.intThe OperatorSets this model relies on.The OperatorSets this model relies on.getOpsetImportOrBuilder(int index) The OperatorSets this model relies on.List<? extends Onnx.OperatorSetIdProtoOrBuilder>The OperatorSets this model relies on.com.google.protobuf.Parser<Onnx.ModelProto>The name of the framework or tool used to generate this model.com.google.protobuf.ByteStringThe name of the framework or tool used to generate this model.The version of the framework or tool used to generate this model.com.google.protobuf.ByteStringThe version of the framework or tool used to generate this model.intgetTrainingInfo(int index) Training-specific information.intTraining-specific information.Training-specific information.getTrainingInfoOrBuilder(int index) Training-specific information.List<? extends Onnx.TrainingInfoProtoOrBuilder>Training-specific information.booleanA human-readable documentation for this model.booleanDomain name of the model.booleanhasGraph()The parameterized graph that is evaluated to execute the model.inthashCode()booleanThe version of the IR this model targets.booleanThe version of the graph encoded.booleanThe name of the framework or tool used to generate this model.booleanThe version of the framework or tool used to generate this model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Onnx.ModelProto.Builderstatic Onnx.ModelProto.BuildernewBuilder(Onnx.ModelProto prototype) protected Onnx.ModelProto.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Onnx.ModelProtoparseDelimitedFrom(InputStream input) static Onnx.ModelProtoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.ModelProtoparseFrom(byte[] data) static Onnx.ModelProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.ModelProtoparseFrom(com.google.protobuf.ByteString data) static Onnx.ModelProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.ModelProtoparseFrom(com.google.protobuf.CodedInputStream input) static Onnx.ModelProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.ModelProtoparseFrom(InputStream input) static Onnx.ModelProtoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.ModelProtoparseFrom(ByteBuffer data) static Onnx.ModelProtoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Onnx.ModelProto>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
IR_VERSION_FIELD_NUMBER
public static final int IR_VERSION_FIELD_NUMBER- See Also:
-
OPSET_IMPORT_FIELD_NUMBER
public static final int OPSET_IMPORT_FIELD_NUMBER- See Also:
-
PRODUCER_NAME_FIELD_NUMBER
public static final int PRODUCER_NAME_FIELD_NUMBER- See Also:
-
PRODUCER_VERSION_FIELD_NUMBER
public static final int PRODUCER_VERSION_FIELD_NUMBER- See Also:
-
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER- See Also:
-
MODEL_VERSION_FIELD_NUMBER
public static final int MODEL_VERSION_FIELD_NUMBER- See Also:
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER- See Also:
-
GRAPH_FIELD_NUMBER
public static final int GRAPH_FIELD_NUMBER- See Also:
-
METADATA_PROPS_FIELD_NUMBER
public static final int METADATA_PROPS_FIELD_NUMBER- See Also:
-
TRAINING_INFO_FIELD_NUMBER
public static final int TRAINING_INFO_FIELD_NUMBER- See Also:
-
FUNCTIONS_FIELD_NUMBER
public static final int FUNCTIONS_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasIrVersion
public boolean hasIrVersion()The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;- Specified by:
hasIrVersionin interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the irVersion field is set.
-
getIrVersion
public long getIrVersion()The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;- Specified by:
getIrVersionin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The irVersion.
-
getOpsetImportList
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;- Specified by:
getOpsetImportListin interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImportOrBuilderList
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;- Specified by:
getOpsetImportOrBuilderListin interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImportCount
public int getOpsetImportCount()The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;- Specified by:
getOpsetImportCountin interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImport
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;- Specified by:
getOpsetImportin interfaceOnnx.ModelProtoOrBuilder
-
getOpsetImportOrBuilder
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
repeated .onnx.OperatorSetIdProto opset_import = 8;- Specified by:
getOpsetImportOrBuilderin interfaceOnnx.ModelProtoOrBuilder
-
hasProducerName
public boolean hasProducerName()The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;- Specified by:
hasProducerNamein interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the producerName field is set.
-
getProducerName
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;- Specified by:
getProducerNamein interfaceOnnx.ModelProtoOrBuilder- Returns:
- The producerName.
-
getProducerNameBytes
public com.google.protobuf.ByteString getProducerNameBytes()The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_name = 2;- Specified by:
getProducerNameBytesin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The bytes for producerName.
-
hasProducerVersion
public boolean hasProducerVersion()The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;- Specified by:
hasProducerVersionin interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the producerVersion field is set.
-
getProducerVersion
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;- Specified by:
getProducerVersionin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The producerVersion.
-
getProducerVersionBytes
public com.google.protobuf.ByteString getProducerVersionBytes()The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
optional string producer_version = 3;- Specified by:
getProducerVersionBytesin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The bytes for producerVersion.
-
hasDomain
public boolean hasDomain()Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;- Specified by:
hasDomainin interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the domain field is set.
-
getDomain
Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;- Specified by:
getDomainin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()Domain name of the model. We use reverse domain names as name space indicators. For example: `com.facebook.fair` or `com.microsoft.cognitiveservices` Together with `model_version` and GraphProto.name, this forms the unique identity of the graph.
optional string domain = 4;- Specified by:
getDomainBytesin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The bytes for domain.
-
hasModelVersion
public boolean hasModelVersion()The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;- Specified by:
hasModelVersionin interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the modelVersion field is set.
-
getModelVersion
public long getModelVersion()The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;- Specified by:
getModelVersionin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The modelVersion.
-
hasDocString
public boolean hasDocString()A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;- Specified by:
hasDocStringin interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;- Specified by:
getDocStringin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;- Specified by:
getDocStringBytesin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The bytes for docString.
-
hasGraph
public boolean hasGraph()The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;- Specified by:
hasGraphin interfaceOnnx.ModelProtoOrBuilder- Returns:
- Whether the graph field is set.
-
getGraph
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;- Specified by:
getGraphin interfaceOnnx.ModelProtoOrBuilder- Returns:
- The graph.
-
getGraphOrBuilder
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;- Specified by:
getGraphOrBuilderin interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsList
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsListin interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsOrBuilderList
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsOrBuilderListin interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsCount
public int getMetadataPropsCount()Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsCountin interfaceOnnx.ModelProtoOrBuilder
-
getMetadataProps
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsin interfaceOnnx.ModelProtoOrBuilder
-
getMetadataPropsOrBuilder
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsOrBuilderin interfaceOnnx.ModelProtoOrBuilder
-
getTrainingInfoList
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;- Specified by:
getTrainingInfoListin interfaceOnnx.ModelProtoOrBuilder
-
getTrainingInfoOrBuilderList
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;- Specified by:
getTrainingInfoOrBuilderListin interfaceOnnx.ModelProtoOrBuilder
-
getTrainingInfoCount
public int getTrainingInfoCount()Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;- Specified by:
getTrainingInfoCountin interfaceOnnx.ModelProtoOrBuilder
-
getTrainingInfo
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;- Specified by:
getTrainingInfoin interfaceOnnx.ModelProtoOrBuilder
-
getTrainingInfoOrBuilder
Training-specific information. Sequentially executing all stored `TrainingInfoProto.algorithm`s and assigning their outputs following the corresponding `TrainingInfoProto.update_binding`s is one training iteration. Similarly, to initialize the model (as if training hasn't happened), the user should sequentially execute all stored `TrainingInfoProto.initialization`s and assigns their outputs using `TrainingInfoProto.initialization_binding`s. If this field is empty, the training behavior of the model is undefined.
repeated .onnx.TrainingInfoProto training_info = 20;- Specified by:
getTrainingInfoOrBuilderin interfaceOnnx.ModelProtoOrBuilder
-
getFunctionsList
A list of function protos local to the model. Name of the function "FunctionProto.name" should be unique within the domain "FunctionProto.domain". In case of any conflicts the behavior (whether the model local functions are given higher priority, or standard operator sets are given higher priotity or this is treated as error) is defined by the runtimes. The operator sets imported by FunctionProto should be compatible with the ones imported by ModelProto and other model local FunctionProtos. Example, if same operator set say 'A' is imported by a FunctionProto and ModelProto or by 2 FunctionProtos then versions for the operator set may be different but, the operator schema returned for op_type, domain, version combination for both the versions should be same for every node in the function body. One FunctionProto can reference other FunctionProto in the model, however, recursive reference is not allowed.
repeated .onnx.FunctionProto functions = 25;- Specified by:
getFunctionsListin interfaceOnnx.ModelProtoOrBuilder
-
getFunctionsOrBuilderList
A list of function protos local to the model. Name of the function "FunctionProto.name" should be unique within the domain "FunctionProto.domain". In case of any conflicts the behavior (whether the model local functions are given higher priority, or standard operator sets are given higher priotity or this is treated as error) is defined by the runtimes. The operator sets imported by FunctionProto should be compatible with the ones imported by ModelProto and other model local FunctionProtos. Example, if same operator set say 'A' is imported by a FunctionProto and ModelProto or by 2 FunctionProtos then versions for the operator set may be different but, the operator schema returned for op_type, domain, version combination for both the versions should be same for every node in the function body. One FunctionProto can reference other FunctionProto in the model, however, recursive reference is not allowed.
repeated .onnx.FunctionProto functions = 25;- Specified by:
getFunctionsOrBuilderListin interfaceOnnx.ModelProtoOrBuilder
-
getFunctionsCount
public int getFunctionsCount()A list of function protos local to the model. Name of the function "FunctionProto.name" should be unique within the domain "FunctionProto.domain". In case of any conflicts the behavior (whether the model local functions are given higher priority, or standard operator sets are given higher priotity or this is treated as error) is defined by the runtimes. The operator sets imported by FunctionProto should be compatible with the ones imported by ModelProto and other model local FunctionProtos. Example, if same operator set say 'A' is imported by a FunctionProto and ModelProto or by 2 FunctionProtos then versions for the operator set may be different but, the operator schema returned for op_type, domain, version combination for both the versions should be same for every node in the function body. One FunctionProto can reference other FunctionProto in the model, however, recursive reference is not allowed.
repeated .onnx.FunctionProto functions = 25;- Specified by:
getFunctionsCountin interfaceOnnx.ModelProtoOrBuilder
-
getFunctions
A list of function protos local to the model. Name of the function "FunctionProto.name" should be unique within the domain "FunctionProto.domain". In case of any conflicts the behavior (whether the model local functions are given higher priority, or standard operator sets are given higher priotity or this is treated as error) is defined by the runtimes. The operator sets imported by FunctionProto should be compatible with the ones imported by ModelProto and other model local FunctionProtos. Example, if same operator set say 'A' is imported by a FunctionProto and ModelProto or by 2 FunctionProtos then versions for the operator set may be different but, the operator schema returned for op_type, domain, version combination for both the versions should be same for every node in the function body. One FunctionProto can reference other FunctionProto in the model, however, recursive reference is not allowed.
repeated .onnx.FunctionProto functions = 25;- Specified by:
getFunctionsin interfaceOnnx.ModelProtoOrBuilder
-
getFunctionsOrBuilder
A list of function protos local to the model. Name of the function "FunctionProto.name" should be unique within the domain "FunctionProto.domain". In case of any conflicts the behavior (whether the model local functions are given higher priority, or standard operator sets are given higher priotity or this is treated as error) is defined by the runtimes. The operator sets imported by FunctionProto should be compatible with the ones imported by ModelProto and other model local FunctionProtos. Example, if same operator set say 'A' is imported by a FunctionProto and ModelProto or by 2 FunctionProtos then versions for the operator set may be different but, the operator schema returned for op_type, domain, version combination for both the versions should be same for every node in the function body. One FunctionProto can reference other FunctionProto in the model, however, recursive reference is not allowed.
repeated .onnx.FunctionProto functions = 25;- Specified by:
getFunctionsOrBuilderin interfaceOnnx.ModelProtoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Onnx.ModelProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.ModelProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.ModelProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.ModelProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.ModelProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.ModelProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Onnx.ModelProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Onnx.ModelProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Onnx.ModelProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Onnx.ModelProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Onnx.ModelProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-