Package onnx
Class OnnxMl.ModelProto
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- onnx.OnnxMl.ModelProto
-
- All Implemented Interfaces:
Serializable,OnnxMl.ModelProtoOrBuilder,org.nd4j.shade.protobuf.Message,org.nd4j.shade.protobuf.MessageLite,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- Enclosing class:
- OnnxMl
public static final class OnnxMl.ModelProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements OnnxMl.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 typeonnx.ModelProto- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOnnxMl.ModelProto.BuilderModels 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 org.nd4j.shade.protobuf.GeneratedMessageV3
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDOC_STRING_FIELD_NUMBERstatic intDOMAIN_FIELD_NUMBERstatic intFUNCTIONS_FIELD_NUMBERstatic intGRAPH_FIELD_NUMBERstatic intIR_VERSION_FIELD_NUMBERstatic intMETADATA_PROPS_FIELD_NUMBERstatic intMODEL_VERSION_FIELD_NUMBERstatic intOPSET_IMPORT_FIELD_NUMBERstatic intPRODUCER_NAME_FIELD_NUMBERstatic intPRODUCER_VERSION_FIELD_NUMBERstatic intTRAINING_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static OnnxMl.ModelProtogetDefaultInstance()OnnxMl.ModelProtogetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDocString()A human-readable documentation for this model.org.nd4j.shade.protobuf.ByteStringgetDocStringBytes()A human-readable documentation for this model.StringgetDomain()Domain name of the model.org.nd4j.shade.protobuf.ByteStringgetDomainBytes()Domain name of the model.OnnxMl.FunctionProtogetFunctions(int index)A list of function protos local to the model.intgetFunctionsCount()A list of function protos local to the model.List<OnnxMl.FunctionProto>getFunctionsList()A list of function protos local to the model.OnnxMl.FunctionProtoOrBuildergetFunctionsOrBuilder(int index)A list of function protos local to the model.List<? extends OnnxMl.FunctionProtoOrBuilder>getFunctionsOrBuilderList()A list of function protos local to the model.OnnxMl.GraphProtogetGraph()The parameterized graph that is evaluated to execute the model.OnnxMl.GraphProtoOrBuildergetGraphOrBuilder()The parameterized graph that is evaluated to execute the model.longgetIrVersion()The version of the IR this model targets.OnnxMl.StringStringEntryProtogetMetadataProps(int index)Named metadata values; keys should be distinct.intgetMetadataPropsCount()Named metadata values; keys should be distinct.List<OnnxMl.StringStringEntryProto>getMetadataPropsList()Named metadata values; keys should be distinct.OnnxMl.StringStringEntryProtoOrBuildergetMetadataPropsOrBuilder(int index)Named metadata values; keys should be distinct.List<? extends OnnxMl.StringStringEntryProtoOrBuilder>getMetadataPropsOrBuilderList()Named metadata values; keys should be distinct.longgetModelVersion()The version of the graph encoded.OnnxMl.OperatorSetIdProtogetOpsetImport(int index)The OperatorSets this model relies on.intgetOpsetImportCount()The OperatorSets this model relies on.List<OnnxMl.OperatorSetIdProto>getOpsetImportList()The OperatorSets this model relies on.OnnxMl.OperatorSetIdProtoOrBuildergetOpsetImportOrBuilder(int index)The OperatorSets this model relies on.List<? extends OnnxMl.OperatorSetIdProtoOrBuilder>getOpsetImportOrBuilderList()The OperatorSets this model relies on.org.nd4j.shade.protobuf.Parser<OnnxMl.ModelProto>getParserForType()StringgetProducerName()The name of the framework or tool used to generate this model.org.nd4j.shade.protobuf.ByteStringgetProducerNameBytes()The name of the framework or tool used to generate this model.StringgetProducerVersion()The version of the framework or tool used to generate this model.org.nd4j.shade.protobuf.ByteStringgetProducerVersionBytes()The version of the framework or tool used to generate this model.intgetSerializedSize()OnnxMl.TrainingInfoProtogetTrainingInfo(int index)Training-specific information.intgetTrainingInfoCount()Training-specific information.List<OnnxMl.TrainingInfoProto>getTrainingInfoList()Training-specific information.OnnxMl.TrainingInfoProtoOrBuildergetTrainingInfoOrBuilder(int index)Training-specific information.List<? extends OnnxMl.TrainingInfoProtoOrBuilder>getTrainingInfoOrBuilderList()Training-specific information.org.nd4j.shade.protobuf.UnknownFieldSetgetUnknownFields()booleanhasGraph()The parameterized graph that is evaluated to execute the model.inthashCode()protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OnnxMl.ModelProto.BuildernewBuilder()static OnnxMl.ModelProto.BuildernewBuilder(OnnxMl.ModelProto prototype)OnnxMl.ModelProto.BuildernewBuilderForType()protected OnnxMl.ModelProto.BuildernewBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OnnxMl.ModelProtoparseDelimitedFrom(InputStream input)static OnnxMl.ModelProtoparseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static OnnxMl.ModelProtoparseFrom(byte[] data)static OnnxMl.ModelProtoparseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static OnnxMl.ModelProtoparseFrom(InputStream input)static OnnxMl.ModelProtoparseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static OnnxMl.ModelProtoparseFrom(ByteBuffer data)static OnnxMl.ModelProtoparseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static OnnxMl.ModelProtoparseFrom(org.nd4j.shade.protobuf.ByteString data)static OnnxMl.ModelProtoparseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static OnnxMl.ModelProtoparseFrom(org.nd4j.shade.protobuf.CodedInputStream input)static OnnxMl.ModelProtoparseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static org.nd4j.shade.protobuf.Parser<OnnxMl.ModelProto>parser()OnnxMl.ModelProto.BuildertoBuilder()voidwriteTo(org.nd4j.shade.protobuf.CodedOutputStream output)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IR_VERSION_FIELD_NUMBER
public static final int IR_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPSET_IMPORT_FIELD_NUMBER
public static final int OPSET_IMPORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCER_NAME_FIELD_NUMBER
public static final int PRODUCER_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCER_VERSION_FIELD_NUMBER
public static final int PRODUCER_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODEL_VERSION_FIELD_NUMBER
public static final int MODEL_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRAPH_FIELD_NUMBER
public static final int GRAPH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_PROPS_FIELD_NUMBER
public static final int METADATA_PROPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAINING_INFO_FIELD_NUMBER
public static final int TRAINING_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FUNCTIONS_FIELD_NUMBER
public static final int FUNCTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getIrVersion
public long getIrVersion()
The version of the IR this model targets. See Version enum above. This field MUST be present.
int64 ir_version = 1;- Specified by:
getIrVersionin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The irVersion.
-
getOpsetImportList
public List<OnnxMl.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;- Specified by:
getOpsetImportListin interfaceOnnxMl.ModelProtoOrBuilder
-
getOpsetImportOrBuilderList
public List<? extends OnnxMl.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;- Specified by:
getOpsetImportOrBuilderListin interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
-
getOpsetImport
public OnnxMl.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;- Specified by:
getOpsetImportin interfaceOnnxMl.ModelProtoOrBuilder
-
getOpsetImportOrBuilder
public OnnxMl.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;- Specified by:
getOpsetImportOrBuilderin interfaceOnnxMl.ModelProtoOrBuilder
-
getProducerName
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;- Specified by:
getProducerNamein interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The producerName.
-
getProducerNameBytes
public org.nd4j.shade.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.
string producer_name = 2;- Specified by:
getProducerNameBytesin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The bytes for producerName.
-
getProducerVersion
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;- Specified by:
getProducerVersionin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The producerVersion.
-
getProducerVersionBytes
public org.nd4j.shade.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.
string producer_version = 3;- Specified by:
getProducerVersionBytesin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The bytes for producerVersion.
-
getDomain
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;- Specified by:
getDomainin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The domain.
-
getDomainBytes
public org.nd4j.shade.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.
string domain = 4;- Specified by:
getDomainBytesin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The bytes for domain.
-
getModelVersion
public long getModelVersion()
The version of the graph encoded. See Version enum below.
int64 model_version = 5;- Specified by:
getModelVersionin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The modelVersion.
-
getDocString
public String getDocString()
A human-readable documentation for this model. Markdown is allowed.
string doc_string = 6;- Specified by:
getDocStringin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this model. Markdown is allowed.
string doc_string = 6;- Specified by:
getDocStringBytesin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The bytes for docString.
-
hasGraph
public boolean hasGraph()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;- Specified by:
hasGraphin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- Whether the graph field is set.
-
getGraph
public OnnxMl.GraphProto getGraph()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;- Specified by:
getGraphin interfaceOnnxMl.ModelProtoOrBuilder- Returns:
- The graph.
-
getGraphOrBuilder
public OnnxMl.GraphProtoOrBuilder getGraphOrBuilder()
The parameterized graph that is evaluated to execute the model.
.onnx.GraphProto graph = 7;- Specified by:
getGraphOrBuilderin interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsList
public List<OnnxMl.StringStringEntryProto> getMetadataPropsList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsListin interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsOrBuilderList
public List<? extends OnnxMl.StringStringEntryProtoOrBuilder> getMetadataPropsOrBuilderList()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsOrBuilderListin interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsCount
public int getMetadataPropsCount()
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsCountin interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataProps
public OnnxMl.StringStringEntryProto getMetadataProps(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsin interfaceOnnxMl.ModelProtoOrBuilder
-
getMetadataPropsOrBuilder
public OnnxMl.StringStringEntryProtoOrBuilder getMetadataPropsOrBuilder(int index)
Named metadata values; keys should be distinct.
repeated .onnx.StringStringEntryProto metadata_props = 14;- Specified by:
getMetadataPropsOrBuilderin interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfoList
public List<OnnxMl.TrainingInfoProto> 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 interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfoOrBuilderList
public List<? extends OnnxMl.TrainingInfoProtoOrBuilder> 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 interfaceOnnxMl.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 interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfo
public OnnxMl.TrainingInfoProto getTrainingInfo(int index)
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 interfaceOnnxMl.ModelProtoOrBuilder
-
getTrainingInfoOrBuilder
public OnnxMl.TrainingInfoProtoOrBuilder getTrainingInfoOrBuilder(int index)
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 interfaceOnnxMl.ModelProtoOrBuilder
-
getFunctionsList
public List<OnnxMl.FunctionProto> 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 opserator 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 interfaceOnnxMl.ModelProtoOrBuilder
-
getFunctionsOrBuilderList
public List<? extends OnnxMl.FunctionProtoOrBuilder> 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 opserator 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 interfaceOnnxMl.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 opserator 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 interfaceOnnxMl.ModelProtoOrBuilder
-
getFunctions
public OnnxMl.FunctionProto getFunctions(int index)
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 opserator 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 interfaceOnnxMl.ModelProtoOrBuilder
-
getFunctionsOrBuilder
public OnnxMl.FunctionProtoOrBuilder getFunctionsOrBuilder(int index)
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 opserator 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 interfaceOnnxMl.ModelProtoOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
writeToin classorg.nd4j.shade.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getSerializedSizein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceorg.nd4j.shade.protobuf.Message- Overrides:
equalsin classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceorg.nd4j.shade.protobuf.Message- Overrides:
hashCodein classorg.nd4j.shade.protobuf.AbstractMessage
-
parseFrom
public static OnnxMl.ModelProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OnnxMl.ModelProto parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OnnxMl.ModelProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OnnxMl.ModelProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OnnxMl.ModelProto.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static OnnxMl.ModelProto.Builder newBuilder()
-
newBuilder
public static OnnxMl.ModelProto.Builder newBuilder(OnnxMl.ModelProto prototype)
-
toBuilder
public OnnxMl.ModelProto.Builder toBuilder()
- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.Message- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected OnnxMl.ModelProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OnnxMl.ModelProto getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<OnnxMl.ModelProto> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<OnnxMl.ModelProto> getParserForType()
- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getParserForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OnnxMl.ModelProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-