public static final class OnnxProto3.ModelProto extends com.github.os72.protobuf351.GeneratedMessageV3 implements OnnxProto3.ModelProtoOrBuilder
ModelProto is a top-level file/container format for bundling a ML model. The semantics of the model are described by the GraphProto that represents a parameterized computation graph against a set of named operators that are defined independently from the graph.Protobuf type
onnx.ModelProto
Modifier and Type | Class and Description |
---|---|
static class |
OnnxProto3.ModelProto.Builder
ModelProto is a top-level file/container format for bundling a ML model.
|
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage>, com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.github.os72.protobuf351.GeneratedMessageV3.ExtendableMessage>, com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
DOC_STRING_FIELD_NUMBER |
static int |
DOMAIN_FIELD_NUMBER |
static int |
GRAPH_FIELD_NUMBER |
static int |
IR_VERSION_FIELD_NUMBER |
static int |
METADATA_PROPS_FIELD_NUMBER |
static int |
MODEL_VERSION_FIELD_NUMBER |
static int |
OPSET_IMPORT_FIELD_NUMBER |
static int |
PRODUCER_NAME_FIELD_NUMBER |
static int |
PRODUCER_VERSION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static OnnxProto3.ModelProto |
getDefaultInstance() |
OnnxProto3.ModelProto |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
String |
getDocString()
A human-readable documentation for this model.
|
com.github.os72.protobuf351.ByteString |
getDocStringBytes()
A human-readable documentation for this model.
|
String |
getDomain()
Domain name of the model.
|
com.github.os72.protobuf351.ByteString |
getDomainBytes()
Domain name of the model.
|
OnnxProto3.GraphProto |
getGraph()
The parameterized graph that is evaluated to execute the model.
|
OnnxProto3.GraphProtoOrBuilder |
getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
|
long |
getIrVersion()
The version of the IR this model targets.
|
OnnxProto3.StringStringEntryProto |
getMetadataProps(int index)
Named metadata values; keys should be distinct.
|
int |
getMetadataPropsCount()
Named metadata values; keys should be distinct.
|
List<OnnxProto3.StringStringEntryProto> |
getMetadataPropsList()
Named metadata values; keys should be distinct.
|
OnnxProto3.StringStringEntryProtoOrBuilder |
getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
|
List<? extends OnnxProto3.StringStringEntryProtoOrBuilder> |
getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
|
long |
getModelVersion()
The version of the graph encoded.
|
OnnxProto3.OperatorSetIdProto |
getOpsetImport(int index)
The OperatorSets this model relies on.
|
int |
getOpsetImportCount()
The OperatorSets this model relies on.
|
List<OnnxProto3.OperatorSetIdProto> |
getOpsetImportList()
The OperatorSets this model relies on.
|
OnnxProto3.OperatorSetIdProtoOrBuilder |
getOpsetImportOrBuilder(int index)
The OperatorSets this model relies on.
|
List<? extends OnnxProto3.OperatorSetIdProtoOrBuilder> |
getOpsetImportOrBuilderList()
The OperatorSets this model relies on.
|
com.github.os72.protobuf351.Parser<OnnxProto3.ModelProto> |
getParserForType() |
String |
getProducerName()
The name of the framework or tool used to generate this model.
|
com.github.os72.protobuf351.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.github.os72.protobuf351.ByteString |
getProducerVersionBytes()
The version of the framework or tool used to generate this model.
|
int |
getSerializedSize() |
com.github.os72.protobuf351.UnknownFieldSet |
getUnknownFields() |
boolean |
hasGraph()
The parameterized graph that is evaluated to execute the model.
|
int |
hashCode() |
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OnnxProto3.ModelProto.Builder |
newBuilder() |
static OnnxProto3.ModelProto.Builder |
newBuilder(OnnxProto3.ModelProto prototype) |
OnnxProto3.ModelProto.Builder |
newBuilderForType() |
protected OnnxProto3.ModelProto.Builder |
newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) |
static OnnxProto3.ModelProto |
parseDelimitedFrom(InputStream input) |
static OnnxProto3.ModelProto |
parseDelimitedFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.ModelProto |
parseFrom(byte[] data) |
static OnnxProto3.ModelProto |
parseFrom(byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.ModelProto |
parseFrom(ByteBuffer data) |
static OnnxProto3.ModelProto |
parseFrom(ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.ByteString data) |
static OnnxProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.CodedInputStream input) |
static OnnxProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxProto3.ModelProto |
parseFrom(InputStream input) |
static OnnxProto3.ModelProto |
parseFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static com.github.os72.protobuf351.Parser<OnnxProto3.ModelProto> |
parser() |
OnnxProto3.ModelProto.Builder |
toBuilder() |
void |
writeTo(com.github.os72.protobuf351.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int IR_VERSION_FIELD_NUMBER
public static final int OPSET_IMPORT_FIELD_NUMBER
public static final int PRODUCER_NAME_FIELD_NUMBER
public static final int PRODUCER_VERSION_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
public static final int MODEL_VERSION_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER
public static final int GRAPH_FIELD_NUMBER
public static final int METADATA_PROPS_FIELD_NUMBER
public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.github.os72.protobuf351.MessageOrBuilder
getUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3
public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3
public long getIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
int64 ir_version = 1;
getIrVersion
in interface OnnxProto3.ModelProtoOrBuilder
public List<OnnxProto3.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;
getOpsetImportList
in interface OnnxProto3.ModelProtoOrBuilder
public List<? extends OnnxProto3.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;
getOpsetImportOrBuilderList
in interface OnnxProto3.ModelProtoOrBuilder
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;
getOpsetImportCount
in interface OnnxProto3.ModelProtoOrBuilder
public OnnxProto3.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;
getOpsetImport
in interface OnnxProto3.ModelProtoOrBuilder
public OnnxProto3.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;
getOpsetImportOrBuilder
in interface OnnxProto3.ModelProtoOrBuilder
public 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.
string producer_name = 2;
getProducerName
in interface OnnxProto3.ModelProtoOrBuilder
public com.github.os72.protobuf351.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.
string producer_name = 2;
getProducerNameBytes
in interface OnnxProto3.ModelProtoOrBuilder
public 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.
string producer_version = 3;
getProducerVersion
in interface OnnxProto3.ModelProtoOrBuilder
public com.github.os72.protobuf351.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.
string producer_version = 3;
getProducerVersionBytes
in interface OnnxProto3.ModelProtoOrBuilder
public 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.
string domain = 4;
getDomain
in interface OnnxProto3.ModelProtoOrBuilder
public com.github.os72.protobuf351.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.
string domain = 4;
getDomainBytes
in interface OnnxProto3.ModelProtoOrBuilder
public long getModelVersion()
The version of the graph encoded. See Version enum below.
int64 model_version = 5;
getModelVersion
in interface OnnxProto3.ModelProtoOrBuilder
public String getDocString()
A human-readable documentation for this model. Markdown is allowed.
string doc_string = 6;
getDocString
in interface OnnxProto3.ModelProtoOrBuilder
public com.github.os72.protobuf351.ByteString getDocStringBytes()
A human-readable documentation for this model. Markdown is allowed.
string doc_string = 6;
getDocStringBytes
in interface OnnxProto3.ModelProtoOrBuilder
public boolean hasGraph()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;
hasGraph
in interface OnnxProto3.ModelProtoOrBuilder
public OnnxProto3.GraphProto getGraph()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;
getGraph
in interface OnnxProto3.ModelProtoOrBuilder
public OnnxProto3.GraphProtoOrBuilder getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;
getGraphOrBuilder
in interface OnnxProto3.ModelProtoOrBuilder
public List<OnnxProto3.StringStringEntryProto> getMetadataPropsList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
getMetadataPropsList
in interface OnnxProto3.ModelProtoOrBuilder
public List<? extends OnnxProto3.StringStringEntryProtoOrBuilder> getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
getMetadataPropsOrBuilderList
in interface OnnxProto3.ModelProtoOrBuilder
public int getMetadataPropsCount()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
getMetadataPropsCount
in interface OnnxProto3.ModelProtoOrBuilder
public OnnxProto3.StringStringEntryProto getMetadataProps(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
getMetadataProps
in interface OnnxProto3.ModelProtoOrBuilder
public OnnxProto3.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;
getMetadataPropsOrBuilder
in interface OnnxProto3.ModelProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws IOException
writeTo
in interface com.github.os72.protobuf351.MessageLite
writeTo
in class com.github.os72.protobuf351.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.github.os72.protobuf351.MessageLite
getSerializedSize
in class com.github.os72.protobuf351.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.github.os72.protobuf351.Message
equals
in class com.github.os72.protobuf351.AbstractMessage
public int hashCode()
hashCode
in interface com.github.os72.protobuf351.Message
hashCode
in class com.github.os72.protobuf351.AbstractMessage
public static OnnxProto3.ModelProto parseFrom(ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.ModelProto parseFrom(ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.ModelProto parseFrom(com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.ModelProto parseFrom(com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.ModelProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.ModelProto parseFrom(byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferException
public static OnnxProto3.ModelProto parseFrom(InputStream input) throws IOException
IOException
public static OnnxProto3.ModelProto parseFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OnnxProto3.ModelProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static OnnxProto3.ModelProto parseDelimitedFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OnnxProto3.ModelProto parseFrom(com.github.os72.protobuf351.CodedInputStream input) throws IOException
IOException
public static OnnxProto3.ModelProto parseFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public OnnxProto3.ModelProto.Builder newBuilderForType()
newBuilderForType
in interface com.github.os72.protobuf351.Message
newBuilderForType
in interface com.github.os72.protobuf351.MessageLite
public static OnnxProto3.ModelProto.Builder newBuilder()
public static OnnxProto3.ModelProto.Builder newBuilder(OnnxProto3.ModelProto prototype)
public OnnxProto3.ModelProto.Builder toBuilder()
toBuilder
in interface com.github.os72.protobuf351.Message
toBuilder
in interface com.github.os72.protobuf351.MessageLite
protected OnnxProto3.ModelProto.Builder newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public static OnnxProto3.ModelProto getDefaultInstance()
public static com.github.os72.protobuf351.Parser<OnnxProto3.ModelProto> parser()
public com.github.os72.protobuf351.Parser<OnnxProto3.ModelProto> getParserForType()
getParserForType
in interface com.github.os72.protobuf351.Message
getParserForType
in interface com.github.os72.protobuf351.MessageLite
getParserForType
in class com.github.os72.protobuf351.GeneratedMessageV3
public OnnxProto3.ModelProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
Copyright © 2019. All rights reserved.