Package onnx
Class Onnx.GraphProto
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- onnx.Onnx.GraphProto
-
- All Implemented Interfaces:
Serializable,Onnx.GraphProtoOrBuilder,org.nd4j.shade.protobuf.Message,org.nd4j.shade.protobuf.MessageLite,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- Enclosing class:
- Onnx
public static final class Onnx.GraphProto extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements Onnx.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 classOnnx.GraphProto.BuilderGraphs 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 intDOC_STRING_FIELD_NUMBERstatic intINITIALIZER_FIELD_NUMBERstatic intINPUT_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNODE_FIELD_NUMBERstatic intOUTPUT_FIELD_NUMBERstatic intQUANTIZATION_ANNOTATION_FIELD_NUMBERstatic intSPARSE_INITIALIZER_FIELD_NUMBERstatic intVALUE_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Onnx.GraphProtogetDefaultInstance()Onnx.GraphProtogetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDocString()A human-readable documentation for this graph.org.nd4j.shade.protobuf.ByteStringgetDocStringBytes()A human-readable documentation for this graph.Onnx.TensorProtogetInitializer(int index)A list of named tensor values, used to specify constant inputs of the graph.intgetInitializerCount()A list of named tensor values, used to specify constant inputs of the graph.List<Onnx.TensorProto>getInitializerList()A list of named tensor values, used to specify constant inputs of the graph.Onnx.TensorProtoOrBuildergetInitializerOrBuilder(int index)A list of named tensor values, used to specify constant inputs of the graph.List<? extends Onnx.TensorProtoOrBuilder>getInitializerOrBuilderList()A list of named tensor values, used to specify constant inputs of the graph.Onnx.ValueInfoProtogetInput(int index)The inputs and outputs of the graph.intgetInputCount()The inputs and outputs of the graph.List<Onnx.ValueInfoProto>getInputList()The inputs and outputs of the graph.Onnx.ValueInfoProtoOrBuildergetInputOrBuilder(int index)The inputs and outputs of the graph.List<? extends Onnx.ValueInfoProtoOrBuilder>getInputOrBuilderList()The inputs and outputs of the graph.StringgetName()The name of the graph.org.nd4j.shade.protobuf.ByteStringgetNameBytes()The name of the graph.Onnx.NodeProtogetNode(int index)The nodes in the graph, sorted topologically.intgetNodeCount()The nodes in the graph, sorted topologically.List<Onnx.NodeProto>getNodeList()The nodes in the graph, sorted topologically.Onnx.NodeProtoOrBuildergetNodeOrBuilder(int index)The nodes in the graph, sorted topologically.List<? extends Onnx.NodeProtoOrBuilder>getNodeOrBuilderList()The nodes in the graph, sorted topologically.Onnx.ValueInfoProtogetOutput(int index)repeated .onnx.ValueInfoProto output = 12;intgetOutputCount()repeated .onnx.ValueInfoProto output = 12;List<Onnx.ValueInfoProto>getOutputList()repeated .onnx.ValueInfoProto output = 12;Onnx.ValueInfoProtoOrBuildergetOutputOrBuilder(int index)repeated .onnx.ValueInfoProto output = 12;List<? extends Onnx.ValueInfoProtoOrBuilder>getOutputOrBuilderList()repeated .onnx.ValueInfoProto output = 12;org.nd4j.shade.protobuf.Parser<Onnx.GraphProto>getParserForType()Onnx.TensorAnnotationgetQuantizationAnnotation(int index)This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.intgetQuantizationAnnotationCount()This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.List<Onnx.TensorAnnotation>getQuantizationAnnotationList()This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.Onnx.TensorAnnotationOrBuildergetQuantizationAnnotationOrBuilder(int index)This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.List<? extends Onnx.TensorAnnotationOrBuilder>getQuantizationAnnotationOrBuilderList()This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.intgetSerializedSize()Onnx.SparseTensorProtogetSparseInitializer(int index)Initializers (see above) stored in sparse format.intgetSparseInitializerCount()Initializers (see above) stored in sparse format.List<Onnx.SparseTensorProto>getSparseInitializerList()Initializers (see above) stored in sparse format.Onnx.SparseTensorProtoOrBuildergetSparseInitializerOrBuilder(int index)Initializers (see above) stored in sparse format.List<? extends Onnx.SparseTensorProtoOrBuilder>getSparseInitializerOrBuilderList()Initializers (see above) stored in sparse format.org.nd4j.shade.protobuf.UnknownFieldSetgetUnknownFields()Onnx.ValueInfoProtogetValueInfo(int index)Information for the values in the graph.intgetValueInfoCount()Information for the values in the graph.List<Onnx.ValueInfoProto>getValueInfoList()Information for the values in the graph.Onnx.ValueInfoProtoOrBuildergetValueInfoOrBuilder(int index)Information for the values in the graph.List<? extends Onnx.ValueInfoProtoOrBuilder>getValueInfoOrBuilderList()Information for the values in the graph.inthashCode()protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Onnx.GraphProto.BuildernewBuilder()static Onnx.GraphProto.BuildernewBuilder(Onnx.GraphProto prototype)Onnx.GraphProto.BuildernewBuilderForType()protected Onnx.GraphProto.BuildernewBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Onnx.GraphProtoparseDelimitedFrom(InputStream input)static Onnx.GraphProtoparseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.GraphProtoparseFrom(byte[] data)static Onnx.GraphProtoparseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.GraphProtoparseFrom(InputStream input)static Onnx.GraphProtoparseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.GraphProtoparseFrom(ByteBuffer data)static Onnx.GraphProtoparseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.GraphProtoparseFrom(org.nd4j.shade.protobuf.ByteString data)static Onnx.GraphProtoparseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static Onnx.GraphProtoparseFrom(org.nd4j.shade.protobuf.CodedInputStream input)static Onnx.GraphProtoparseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static org.nd4j.shade.protobuf.Parser<Onnx.GraphProto>parser()Onnx.GraphProto.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
-
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:
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
-
getNodeList
public List<Onnx.NodeProto> getNodeList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;- Specified by:
getNodeListin interfaceOnnx.GraphProtoOrBuilder
-
getNodeOrBuilderList
public List<? extends Onnx.NodeProtoOrBuilder> getNodeOrBuilderList()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;- Specified by:
getNodeOrBuilderListin interfaceOnnx.GraphProtoOrBuilder
-
getNodeCount
public int getNodeCount()
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;- Specified by:
getNodeCountin interfaceOnnx.GraphProtoOrBuilder
-
getNode
public Onnx.NodeProto getNode(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;- Specified by:
getNodein interfaceOnnx.GraphProtoOrBuilder
-
getNodeOrBuilder
public Onnx.NodeProtoOrBuilder getNodeOrBuilder(int index)
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;- Specified by:
getNodeOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
getName
public String getName()
The name of the graph.
string name = 2;- Specified by:
getNamein interfaceOnnx.GraphProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public org.nd4j.shade.protobuf.ByteString getNameBytes()
The name of the graph.
string name = 2;- Specified by:
getNameBytesin interfaceOnnx.GraphProtoOrBuilder- Returns:
- The bytes for name.
-
getInitializerList
public List<Onnx.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:
getInitializerListin interfaceOnnx.GraphProtoOrBuilder
-
getInitializerOrBuilderList
public List<? extends Onnx.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:
getInitializerOrBuilderListin interfaceOnnx.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:
getInitializerCountin interfaceOnnx.GraphProtoOrBuilder
-
getInitializer
public Onnx.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:
getInitializerin interfaceOnnx.GraphProtoOrBuilder
-
getInitializerOrBuilder
public Onnx.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:
getInitializerOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
getSparseInitializerList
public List<Onnx.SparseTensorProto> getSparseInitializerList()
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;- Specified by:
getSparseInitializerListin interfaceOnnx.GraphProtoOrBuilder
-
getSparseInitializerOrBuilderList
public List<? extends Onnx.SparseTensorProtoOrBuilder> getSparseInitializerOrBuilderList()
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;- Specified by:
getSparseInitializerOrBuilderListin interfaceOnnx.GraphProtoOrBuilder
-
getSparseInitializerCount
public int getSparseInitializerCount()
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;- Specified by:
getSparseInitializerCountin interfaceOnnx.GraphProtoOrBuilder
-
getSparseInitializer
public Onnx.SparseTensorProto getSparseInitializer(int index)
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;- Specified by:
getSparseInitializerin interfaceOnnx.GraphProtoOrBuilder
-
getSparseInitializerOrBuilder
public Onnx.SparseTensorProtoOrBuilder getSparseInitializerOrBuilder(int index)
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;- Specified by:
getSparseInitializerOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
getDocString
public String getDocString()
A human-readable documentation for this graph. Markdown is allowed.
string doc_string = 10;- Specified by:
getDocStringin interfaceOnnx.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:
getDocStringBytesin interfaceOnnx.GraphProtoOrBuilder- Returns:
- The bytes for docString.
-
getInputList
public List<Onnx.ValueInfoProto> getInputList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;- Specified by:
getInputListin interfaceOnnx.GraphProtoOrBuilder
-
getInputOrBuilderList
public List<? extends Onnx.ValueInfoProtoOrBuilder> getInputOrBuilderList()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;- Specified by:
getInputOrBuilderListin interfaceOnnx.GraphProtoOrBuilder
-
getInputCount
public int getInputCount()
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;- Specified by:
getInputCountin interfaceOnnx.GraphProtoOrBuilder
-
getInput
public Onnx.ValueInfoProto getInput(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;- Specified by:
getInputin interfaceOnnx.GraphProtoOrBuilder
-
getInputOrBuilder
public Onnx.ValueInfoProtoOrBuilder getInputOrBuilder(int index)
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;- Specified by:
getInputOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
getOutputList
public List<Onnx.ValueInfoProto> getOutputList()
repeated .onnx.ValueInfoProto output = 12;- Specified by:
getOutputListin interfaceOnnx.GraphProtoOrBuilder
-
getOutputOrBuilderList
public List<? extends Onnx.ValueInfoProtoOrBuilder> getOutputOrBuilderList()
repeated .onnx.ValueInfoProto output = 12;- Specified by:
getOutputOrBuilderListin interfaceOnnx.GraphProtoOrBuilder
-
getOutputCount
public int getOutputCount()
repeated .onnx.ValueInfoProto output = 12;- Specified by:
getOutputCountin interfaceOnnx.GraphProtoOrBuilder
-
getOutput
public Onnx.ValueInfoProto getOutput(int index)
repeated .onnx.ValueInfoProto output = 12;- Specified by:
getOutputin interfaceOnnx.GraphProtoOrBuilder
-
getOutputOrBuilder
public Onnx.ValueInfoProtoOrBuilder getOutputOrBuilder(int index)
repeated .onnx.ValueInfoProto output = 12;- Specified by:
getOutputOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoList
public List<Onnx.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:
getValueInfoListin interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoOrBuilderList
public List<? extends Onnx.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:
getValueInfoOrBuilderListin interfaceOnnx.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:
getValueInfoCountin interfaceOnnx.GraphProtoOrBuilder
-
getValueInfo
public Onnx.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:
getValueInfoin interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoOrBuilder
public Onnx.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:
getValueInfoOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
getQuantizationAnnotationList
public List<Onnx.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:
getQuantizationAnnotationListin interfaceOnnx.GraphProtoOrBuilder
-
getQuantizationAnnotationOrBuilderList
public List<? extends Onnx.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:
getQuantizationAnnotationOrBuilderListin interfaceOnnx.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:
getQuantizationAnnotationCountin interfaceOnnx.GraphProtoOrBuilder
-
getQuantizationAnnotation
public Onnx.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:
getQuantizationAnnotationin interfaceOnnx.GraphProtoOrBuilder
-
getQuantizationAnnotationOrBuilder
public Onnx.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:
getQuantizationAnnotationOrBuilderin interfaceOnnx.GraphProtoOrBuilder
-
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 Onnx.GraphProto parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.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 Onnx.GraphProto parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.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 Onnx.GraphProto parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.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 Onnx.GraphProto parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Onnx.GraphProto parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Onnx.GraphProto parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Onnx.GraphProto parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Onnx.GraphProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Onnx.GraphProto parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Onnx.GraphProto.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static Onnx.GraphProto.Builder newBuilder()
-
newBuilder
public static Onnx.GraphProto.Builder newBuilder(Onnx.GraphProto prototype)
-
toBuilder
public Onnx.GraphProto.Builder toBuilder()
- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.Message- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected Onnx.GraphProto.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Onnx.GraphProto getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<Onnx.GraphProto> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<Onnx.GraphProto> 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 Onnx.GraphProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-