Package onnx
Interface Onnx.ModelProtoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Onnx.ModelProto
,Onnx.ModelProto.Builder
- Enclosing class:
- Onnx
public static interface Onnx.ModelProtoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDocString()
A human-readable documentation for this model.com.google.protobuf.ByteString
getDocStringBytes()
A human-readable documentation for this model.String
getDomain()
Domain name of the model.com.google.protobuf.ByteString
getDomainBytes()
Domain name of the model.Onnx.GraphProto
getGraph()
The parameterized graph that is evaluated to execute the model.Onnx.GraphProtoOrBuilder
getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.long
getIrVersion()
The version of the IR this model targets.Onnx.StringStringEntryProto
getMetadataProps(int index)
Named metadata values; keys should be distinct.int
getMetadataPropsCount()
Named metadata values; keys should be distinct.List<Onnx.StringStringEntryProto>
getMetadataPropsList()
Named metadata values; keys should be distinct.Onnx.StringStringEntryProtoOrBuilder
getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.List<? extends Onnx.StringStringEntryProtoOrBuilder>
getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.long
getModelVersion()
The version of the graph encoded.Onnx.OperatorSetIdProto
getOpsetImport(int index)
The OperatorSets this model relies on.int
getOpsetImportCount()
The OperatorSets this model relies on.List<Onnx.OperatorSetIdProto>
getOpsetImportList()
The OperatorSets this model relies on.Onnx.OperatorSetIdProtoOrBuilder
getOpsetImportOrBuilder(int index)
The OperatorSets this model relies on.List<? extends Onnx.OperatorSetIdProtoOrBuilder>
getOpsetImportOrBuilderList()
The OperatorSets this model relies on.String
getProducerName()
The name of the framework or tool used to generate this model.com.google.protobuf.ByteString
getProducerNameBytes()
The name of the framework or tool used to generate this model.String
getProducerVersion()
The version of the framework or tool used to generate this model.com.google.protobuf.ByteString
getProducerVersionBytes()
The version of the framework or tool used to generate this model.boolean
hasDocString()
A human-readable documentation for this model.boolean
hasDomain()
Domain name of the model.boolean
hasGraph()
The parameterized graph that is evaluated to execute the model.boolean
hasIrVersion()
The version of the IR this model targets.boolean
hasModelVersion()
The version of the graph encoded.boolean
hasProducerName()
The name of the framework or tool used to generate this model.boolean
hasProducerVersion()
The version of the framework or tool used to generate this model.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasIrVersion
boolean hasIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;
- Returns:
- Whether the irVersion field is set.
-
getIrVersion
long getIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
optional int64 ir_version = 1;
- Returns:
- The irVersion.
-
getOpsetImportList
List<Onnx.OperatorSetIdProto> 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;
-
getOpsetImport
Onnx.OperatorSetIdProto getOpsetImport(int index)
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;
-
getOpsetImportCount
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;
-
getOpsetImportOrBuilderList
List<? extends Onnx.OperatorSetIdProtoOrBuilder> 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;
-
getOpsetImportOrBuilder
Onnx.OperatorSetIdProtoOrBuilder getOpsetImportOrBuilder(int index)
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;
-
hasProducerName
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;
- Returns:
- Whether the producerName field is set.
-
getProducerName
String 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;
- Returns:
- The producerName.
-
getProducerNameBytes
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;
- Returns:
- The bytes for producerName.
-
hasProducerVersion
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;
- Returns:
- Whether the producerVersion field is set.
-
getProducerVersion
String 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;
- Returns:
- The producerVersion.
-
getProducerVersionBytes
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;
- Returns:
- The bytes for producerVersion.
-
hasDomain
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;
- Returns:
- Whether the domain field is set.
-
getDomain
String 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;
- Returns:
- The domain.
-
getDomainBytes
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;
- Returns:
- The bytes for domain.
-
hasModelVersion
boolean hasModelVersion()
The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;
- Returns:
- Whether the modelVersion field is set.
-
getModelVersion
long getModelVersion()
The version of the graph encoded. See Version enum below.
optional int64 model_version = 5;
- Returns:
- The modelVersion.
-
hasDocString
boolean hasDocString()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Returns:
- Whether the docString field is set.
-
getDocString
String getDocString()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Returns:
- The docString.
-
getDocStringBytes
com.google.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this model. Markdown is allowed.
optional string doc_string = 6;
- Returns:
- The bytes for docString.
-
hasGraph
boolean hasGraph()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Returns:
- Whether the graph field is set.
-
getGraph
Onnx.GraphProto getGraph()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
- Returns:
- The graph.
-
getGraphOrBuilder
Onnx.GraphProtoOrBuilder getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
optional .onnx.GraphProto graph = 7;
-
getMetadataPropsList
List<Onnx.StringStringEntryProto> getMetadataPropsList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataProps
Onnx.StringStringEntryProto getMetadataProps(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsCount
int getMetadataPropsCount()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsOrBuilderList
List<? extends Onnx.StringStringEntryProtoOrBuilder> getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
getMetadataPropsOrBuilder
Onnx.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
-
-