public static final class OnnxMlProto3.ModelProto extends com.github.os72.protobuf351.GeneratedMessageV3 implements OnnxMlProto3.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 |
OnnxMlProto3.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 OnnxMlProto3.ModelProto |
getDefaultInstance() |
OnnxMlProto3.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.
|
OnnxMlProto3.GraphProto |
getGraph()
The parameterized graph that is evaluated to execute the model.
|
OnnxMlProto3.GraphProtoOrBuilder |
getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
|
long |
getIrVersion()
The version of the IR this model targets.
|
OnnxMlProto3.StringStringEntryProto |
getMetadataProps(int index)
Named metadata values; keys should be distinct.
|
int |
getMetadataPropsCount()
Named metadata values; keys should be distinct.
|
List<OnnxMlProto3.StringStringEntryProto> |
getMetadataPropsList()
Named metadata values; keys should be distinct.
|
OnnxMlProto3.StringStringEntryProtoOrBuilder |
getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
|
List<? extends OnnxMlProto3.StringStringEntryProtoOrBuilder> |
getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
|
long |
getModelVersion()
The version of the graph encoded.
|
OnnxMlProto3.OperatorSetIdProto |
getOpsetImport(int index)
The OperatorSets this model relies on.
|
int |
getOpsetImportCount()
The OperatorSets this model relies on.
|
List<OnnxMlProto3.OperatorSetIdProto> |
getOpsetImportList()
The OperatorSets this model relies on.
|
OnnxMlProto3.OperatorSetIdProtoOrBuilder |
getOpsetImportOrBuilder(int index)
The OperatorSets this model relies on.
|
List<? extends OnnxMlProto3.OperatorSetIdProtoOrBuilder> |
getOpsetImportOrBuilderList()
The OperatorSets this model relies on.
|
com.github.os72.protobuf351.Parser<OnnxMlProto3.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 OnnxMlProto3.ModelProto.Builder |
newBuilder() |
static OnnxMlProto3.ModelProto.Builder |
newBuilder(OnnxMlProto3.ModelProto prototype) |
OnnxMlProto3.ModelProto.Builder |
newBuilderForType() |
protected OnnxMlProto3.ModelProto.Builder |
newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) |
static OnnxMlProto3.ModelProto |
parseDelimitedFrom(InputStream input) |
static OnnxMlProto3.ModelProto |
parseDelimitedFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxMlProto3.ModelProto |
parseFrom(byte[] data) |
static OnnxMlProto3.ModelProto |
parseFrom(byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxMlProto3.ModelProto |
parseFrom(ByteBuffer data) |
static OnnxMlProto3.ModelProto |
parseFrom(ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxMlProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.ByteString data) |
static OnnxMlProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxMlProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.CodedInputStream input) |
static OnnxMlProto3.ModelProto |
parseFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static OnnxMlProto3.ModelProto |
parseFrom(InputStream input) |
static OnnxMlProto3.ModelProto |
parseFrom(InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
static com.github.os72.protobuf351.Parser<OnnxMlProto3.ModelProto> |
parser() |
OnnxMlProto3.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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageOrBuildergetUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.github.os72.protobuf351.GeneratedMessageV3public 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 OnnxMlProto3.ModelProtoOrBuilderpublic List<OnnxMlProto3.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 OnnxMlProto3.ModelProtoOrBuilderpublic List<? extends OnnxMlProto3.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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic OnnxMlProto3.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 OnnxMlProto3.ModelProtoOrBuilderpublic OnnxMlProto3.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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic 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 OnnxMlProto3.ModelProtoOrBuilderpublic long getModelVersion()
The version of the graph encoded. See Version enum below.
int64 model_version = 5;getModelVersion in interface OnnxMlProto3.ModelProtoOrBuilderpublic String getDocString()
A human-readable documentation for this model. Markdown is allowed.
string doc_string = 6;getDocString in interface OnnxMlProto3.ModelProtoOrBuilderpublic com.github.os72.protobuf351.ByteString getDocStringBytes()
A human-readable documentation for this model. Markdown is allowed.
string doc_string = 6;getDocStringBytes in interface OnnxMlProto3.ModelProtoOrBuilderpublic boolean hasGraph()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;hasGraph in interface OnnxMlProto3.ModelProtoOrBuilderpublic OnnxMlProto3.GraphProto getGraph()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;getGraph in interface OnnxMlProto3.ModelProtoOrBuilderpublic OnnxMlProto3.GraphProtoOrBuilder getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;getGraphOrBuilder in interface OnnxMlProto3.ModelProtoOrBuilderpublic List<OnnxMlProto3.StringStringEntryProto> getMetadataPropsList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;getMetadataPropsList in interface OnnxMlProto3.ModelProtoOrBuilderpublic List<? extends OnnxMlProto3.StringStringEntryProtoOrBuilder> getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;getMetadataPropsOrBuilderList in interface OnnxMlProto3.ModelProtoOrBuilderpublic int getMetadataPropsCount()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;getMetadataPropsCount in interface OnnxMlProto3.ModelProtoOrBuilderpublic OnnxMlProto3.StringStringEntryProto getMetadataProps(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;getMetadataProps in interface OnnxMlProto3.ModelProtoOrBuilderpublic OnnxMlProto3.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;getMetadataPropsOrBuilder in interface OnnxMlProto3.ModelProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.github.os72.protobuf351.MessageLiteOrBuilderisInitialized in class com.github.os72.protobuf351.GeneratedMessageV3public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws IOException
writeTo in interface com.github.os72.protobuf351.MessageLitewriteTo in class com.github.os72.protobuf351.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.github.os72.protobuf351.MessageLitegetSerializedSize in class com.github.os72.protobuf351.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.github.os72.protobuf351.Messageequals in class com.github.os72.protobuf351.AbstractMessagepublic int hashCode()
hashCode in interface com.github.os72.protobuf351.MessagehashCode in class com.github.os72.protobuf351.AbstractMessagepublic static OnnxMlProto3.ModelProto parseFrom(ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferExceptionpublic static OnnxMlProto3.ModelProto parseFrom(ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferExceptionpublic static OnnxMlProto3.ModelProto parseFrom(com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferExceptionpublic static OnnxMlProto3.ModelProto parseFrom(com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferExceptionpublic static OnnxMlProto3.ModelProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferExceptionpublic static OnnxMlProto3.ModelProto parseFrom(byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException
com.github.os72.protobuf351.InvalidProtocolBufferExceptionpublic static OnnxMlProto3.ModelProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static OnnxMlProto3.ModelProto parseFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OnnxMlProto3.ModelProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OnnxMlProto3.ModelProto parseDelimitedFrom(InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OnnxMlProto3.ModelProto parseFrom(com.github.os72.protobuf351.CodedInputStream input) throws IOException
IOExceptionpublic static OnnxMlProto3.ModelProto parseFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OnnxMlProto3.ModelProto.Builder newBuilderForType()
newBuilderForType in interface com.github.os72.protobuf351.MessagenewBuilderForType in interface com.github.os72.protobuf351.MessageLitepublic static OnnxMlProto3.ModelProto.Builder newBuilder()
public static OnnxMlProto3.ModelProto.Builder newBuilder(OnnxMlProto3.ModelProto prototype)
public OnnxMlProto3.ModelProto.Builder toBuilder()
toBuilder in interface com.github.os72.protobuf351.MessagetoBuilder in interface com.github.os72.protobuf351.MessageLiteprotected OnnxMlProto3.ModelProto.Builder newBuilderForType(com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.github.os72.protobuf351.GeneratedMessageV3public static OnnxMlProto3.ModelProto getDefaultInstance()
public static com.github.os72.protobuf351.Parser<OnnxMlProto3.ModelProto> parser()
public com.github.os72.protobuf351.Parser<OnnxMlProto3.ModelProto> getParserForType()
getParserForType in interface com.github.os72.protobuf351.MessagegetParserForType in interface com.github.os72.protobuf351.MessageLitegetParserForType in class com.github.os72.protobuf351.GeneratedMessageV3public OnnxMlProto3.ModelProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.github.os72.protobuf351.MessageLiteOrBuildergetDefaultInstanceForType in interface com.github.os72.protobuf351.MessageOrBuilderCopyright © 2018. All rights reserved.