Package onnx
Class OnnxMl.GraphProto
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- onnx.OnnxMl.GraphProto
-
- All Implemented Interfaces:
Serializable
,OnnxMl.GraphProtoOrBuilder
,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.GraphProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements OnnxMl.GraphProtoOrBuilder
Graphs A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs. This is the equivalent of the "network" or "graph" in many deep learning frameworks.
Protobuf typeonnx.GraphProto
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OnnxMl.GraphProto.Builder
Graphs A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs.-
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 int
DOC_STRING_FIELD_NUMBER
static int
INITIALIZER_FIELD_NUMBER
static int
INPUT_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NODE_FIELD_NUMBER
static int
OUTPUT_FIELD_NUMBER
static int
QUANTIZATION_ANNOTATION_FIELD_NUMBER
static int
SPARSE_INITIALIZER_FIELD_NUMBER
static int
VALUE_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static OnnxMl.GraphProto
getDefaultInstance()
OnnxMl.GraphProto
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDocString()
A human-readable documentation for this graph.org.nd4j.shade.protobuf.ByteString
getDocStringBytes()
A human-readable documentation for this graph.OnnxMl.TensorProto
getInitializer(int index)
A list of named tensor values, used to specify constant inputs of the graph.int
getInitializerCount()
A list of named tensor values, used to specify constant inputs of the graph.List<OnnxMl.TensorProto>
getInitializerList()
A list of named tensor values, used to specify constant inputs of the graph.OnnxMl.TensorProtoOrBuilder
getInitializerOrBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph.List<? extends OnnxMl.TensorProtoOrBuilder>
getInitializerOrBuilderList()
A list of named tensor values, used to specify constant inputs of the graph.OnnxMl.ValueInfoProto
getInput(int index)
The inputs and outputs of the graph.int
getInputCount()
The inputs and outputs of the graph.List<OnnxMl.ValueInfoProto>
getInputList()
The inputs and outputs of the graph.OnnxMl.ValueInfoProtoOrBuilder
getInputOrBuilder(int index)
The inputs and outputs of the graph.List<? extends OnnxMl.ValueInfoProtoOrBuilder>
getInputOrBuilderList()
The inputs and outputs of the graph.String
getName()
The name of the graph.org.nd4j.shade.protobuf.ByteString
getNameBytes()
The name of the graph.OnnxMl.NodeProto
getNode(int index)
The nodes in the graph, sorted topologically.int
getNodeCount()
The nodes in the graph, sorted topologically.List<OnnxMl.NodeProto>
getNodeList()
The nodes in the graph, sorted topologically.OnnxMl.NodeProtoOrBuilder
getNodeOrBuilder(int index)
The nodes in the graph, sorted topologically.List<? extends OnnxMl.NodeProtoOrBuilder>
getNodeOrBuilderList()
The nodes in the graph, sorted topologically.OnnxMl.ValueInfoProto
getOutput(int index)
repeated .onnx.ValueInfoProto output = 12;
int
getOutputCount()
repeated .onnx.ValueInfoProto output = 12;
List<OnnxMl.ValueInfoProto>
getOutputList()
repeated .onnx.ValueInfoProto output = 12;
OnnxMl.ValueInfoProtoOrBuilder
getOutputOrBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
List<? extends OnnxMl.ValueInfoProtoOrBuilder>
getOutputOrBuilderList()
repeated .onnx.ValueInfoProto output = 12;
org.nd4j.shade.protobuf.Parser<OnnxMl.GraphProto>
getParserForType()
OnnxMl.TensorAnnotation
getQuantizationAnnotation(int index)
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.int
getQuantizationAnnotationCount()
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.List<OnnxMl.TensorAnnotation>
getQuantizationAnnotationList()
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.OnnxMl.TensorAnnotationOrBuilder
getQuantizationAnnotationOrBuilder(int index)
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.List<? extends OnnxMl.TensorAnnotationOrBuilder>
getQuantizationAnnotationOrBuilderList()
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.int
getSerializedSize()
OnnxMl.SparseTensorProto
getSparseInitializer(int index)
Initializers (see above) stored in sparse format.int
getSparseInitializerCount()
Initializers (see above) stored in sparse format.List<OnnxMl.SparseTensorProto>
getSparseInitializerList()
Initializers (see above) stored in sparse format.OnnxMl.SparseTensorProtoOrBuilder
getSparseInitializerOrBuilder(int index)
Initializers (see above) stored in sparse format.List<? extends OnnxMl.SparseTensorProtoOrBuilder>
getSparseInitializerOrBuilderList()
Initializers (see above) stored in sparse format.org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields()
OnnxMl.ValueInfoProto
getValueInfo(int index)
Information for the values in the graph.int
getValueInfoCount()
Information for the values in the graph.List<OnnxMl.ValueInfoProto>
getValueInfoList()
Information for the values in the graph.OnnxMl.ValueInfoProtoOrBuilder
getValueInfoOrBuilder(int index)
Information for the values in the graph.List<? extends OnnxMl.ValueInfoProtoOrBuilder>
getValueInfoOrBuilderList()
Information for the values in the graph.int
hashCode()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static OnnxMl.GraphProto.Builder
newBuilder()
static OnnxMl.GraphProto.Builder
newBuilder(OnnxMl.GraphProto prototype)
OnnxMl.GraphProto.Builder
newBuilderForType()
protected OnnxMl.GraphProto.Builder
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static OnnxMl.GraphProto
parseDelimitedFrom(InputStream input)
static OnnxMl.GraphProto
parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static OnnxMl.GraphProto
parseFrom(byte[] data)
static OnnxMl.GraphProto
parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static OnnxMl.GraphProto
parseFrom(InputStream input)
static OnnxMl.GraphProto
parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static OnnxMl.GraphProto
parseFrom(ByteBuffer data)
static OnnxMl.GraphProto
parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static OnnxMl.GraphProto
parseFrom(org.nd4j.shade.protobuf.ByteString data)
static OnnxMl.GraphProto
parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static OnnxMl.GraphProto
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input)
static OnnxMl.GraphProto
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static org.nd4j.shade.protobuf.Parser<OnnxMl.GraphProto>
parser()
OnnxMl.GraphProto.Builder
toBuilder()
void
writeTo(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
-
NODE_FIELD_NUMBER
public static final int NODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INITIALIZER_FIELD_NUMBER
public static final int INITIALIZER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPARSE_INITIALIZER_FIELD_NUMBER
public static final int SPARSE_INITIALIZER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INPUT_FIELD_NUMBER
public static final int INPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALUE_INFO_FIELD_NUMBER
public static final int VALUE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUANTIZATION_ANNOTATION_FIELD_NUMBER
public static final int QUANTIZATION_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in 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:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getNodeList
public List<OnnxMl.NodeProto> getNodeList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getNodeOrBuilderList
public List<? extends OnnxMl.NodeProtoOrBuilder> getNodeOrBuilderList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getNodeCount
public int getNodeCount()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getNode
public OnnxMl.NodeProto getNode(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNode
in interfaceOnnxMl.GraphProtoOrBuilder
-
getNodeOrBuilder
public OnnxMl.NodeProtoOrBuilder getNodeOrBuilder(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getName
public String getName()
The name of the graph.
string name = 2;
- Specified by:
getName
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public org.nd4j.shade.protobuf.ByteString getNameBytes()
The name of the graph.
string name = 2;
- Specified by:
getNameBytes
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The bytes for name.
-
getInitializerList
public List<OnnxMl.TensorProto> getInitializerList()
A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInitializerOrBuilderList
public List<? extends OnnxMl.TensorProtoOrBuilder> getInitializerOrBuilderList()
A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInitializerCount
public int getInitializerCount()
A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInitializer
public OnnxMl.TensorProto getInitializer(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializer
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInitializerOrBuilder
public OnnxMl.TensorProtoOrBuilder getInitializerOrBuilder(int index)
A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getSparseInitializerList
public List<OnnxMl.SparseTensorProto> getSparseInitializerList()
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getSparseInitializerOrBuilderList
public List<? extends OnnxMl.SparseTensorProtoOrBuilder> getSparseInitializerOrBuilderList()
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getSparseInitializerCount
public int getSparseInitializerCount()
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getSparseInitializer
public OnnxMl.SparseTensorProto getSparseInitializer(int index)
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializer
in interfaceOnnxMl.GraphProtoOrBuilder
-
getSparseInitializerOrBuilder
public OnnxMl.SparseTensorProtoOrBuilder getSparseInitializerOrBuilder(int index)
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getDocString
public String getDocString()
A human-readable documentation for this graph. Markdown is allowed.
string doc_string = 10;
- Specified by:
getDocString
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The docString.
-
getDocStringBytes
public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
A human-readable documentation for this graph. Markdown is allowed.
string doc_string = 10;
- Specified by:
getDocStringBytes
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The bytes for docString.
-
getInputList
public List<OnnxMl.ValueInfoProto> getInputList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInputOrBuilderList
public List<? extends OnnxMl.ValueInfoProtoOrBuilder> getInputOrBuilderList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInputCount
public int getInputCount()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInput
public OnnxMl.ValueInfoProto getInput(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInput
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInputOrBuilder
public OnnxMl.ValueInfoProtoOrBuilder getInputOrBuilder(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutputList
public List<OnnxMl.ValueInfoProto> getOutputList()
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutputOrBuilderList
public List<? extends OnnxMl.ValueInfoProtoOrBuilder> getOutputOrBuilderList()
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutputCount
public int getOutputCount()
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutput
public OnnxMl.ValueInfoProto getOutput(int index)
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutput
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutputOrBuilder
public OnnxMl.ValueInfoProtoOrBuilder getOutputOrBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getValueInfoList
public List<OnnxMl.ValueInfoProto> getValueInfoList()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getValueInfoOrBuilderList
public List<? extends OnnxMl.ValueInfoProtoOrBuilder> getValueInfoOrBuilderList()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getValueInfoCount
public int getValueInfoCount()
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getValueInfo
public OnnxMl.ValueInfoProto getValueInfo(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfo
in interfaceOnnxMl.GraphProtoOrBuilder
-
getValueInfoOrBuilder
public OnnxMl.ValueInfoProtoOrBuilder getValueInfoOrBuilder(int index)
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getQuantizationAnnotationList
public List<OnnxMl.TensorAnnotation> getQuantizationAnnotationList()
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
repeated .onnx.TensorAnnotation quantization_annotation = 14;
- Specified by:
getQuantizationAnnotationList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getQuantizationAnnotationOrBuilderList
public List<? extends OnnxMl.TensorAnnotationOrBuilder> getQuantizationAnnotationOrBuilderList()
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
repeated .onnx.TensorAnnotation quantization_annotation = 14;
- Specified by:
getQuantizationAnnotationOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getQuantizationAnnotationCount
public int getQuantizationAnnotationCount()
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
repeated .onnx.TensorAnnotation quantization_annotation = 14;
- Specified by:
getQuantizationAnnotationCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getQuantizationAnnotation
public OnnxMl.TensorAnnotation getQuantizationAnnotation(int index)
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
repeated .onnx.TensorAnnotation quantization_annotation = 14;
- Specified by:
getQuantizationAnnotation
in interfaceOnnxMl.GraphProtoOrBuilder
-
getQuantizationAnnotationOrBuilder
public OnnxMl.TensorAnnotationOrBuilder getQuantizationAnnotationOrBuilder(int index)
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.
repeated .onnx.TensorAnnotation quantization_annotation = 14;
- Specified by:
getQuantizationAnnotationOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
writeTo
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
getSerializedSize
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceorg.nd4j.shade.protobuf.Message
- Overrides:
equals
in classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceorg.nd4j.shade.protobuf.Message
- Overrides:
hashCode
in classorg.nd4j.shade.protobuf.AbstractMessage
-
parseFrom
public static OnnxMl.GraphProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.GraphProto 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.GraphProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.GraphProto 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.GraphProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OnnxMl.GraphProto 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.GraphProto parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OnnxMl.GraphProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OnnxMl.GraphProto parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OnnxMl.GraphProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OnnxMl.GraphProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OnnxMl.GraphProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OnnxMl.GraphProto.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
newBuilderForType
in interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static OnnxMl.GraphProto.Builder newBuilder()
-
newBuilder
public static OnnxMl.GraphProto.Builder newBuilder(OnnxMl.GraphProto prototype)
-
toBuilder
public OnnxMl.GraphProto.Builder toBuilder()
- Specified by:
toBuilder
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
toBuilder
in interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected OnnxMl.GraphProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OnnxMl.GraphProto getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<OnnxMl.GraphProto> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<OnnxMl.GraphProto> getParserForType()
- Specified by:
getParserForType
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
getParserForType
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
getParserForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OnnxMl.GraphProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-