Package ai.onnx.proto
Class OnnxMl.GraphProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
ai.onnx.proto.OnnxMl.GraphProto.Builder
- All Implemented Interfaces:
OnnxMl.GraphProtoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OnnxMl.GraphProto
public static final class OnnxMl.GraphProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
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 type
onnx.GraphProto
-
Method Summary
Modifier and TypeMethodDescriptionaddAllInitializer
(Iterable<? extends OnnxMl.TensorProto> values) A list of named tensor values, used to specify constant inputs of the graph.addAllInput
(Iterable<? extends OnnxMl.ValueInfoProto> values) The inputs and outputs of the graph.addAllNode
(Iterable<? extends OnnxMl.NodeProto> values) The nodes in the graph, sorted topologically.addAllOutput
(Iterable<? extends OnnxMl.ValueInfoProto> values) repeated .onnx.ValueInfoProto output = 12;
addAllQuantizationAnnotation
(Iterable<? extends OnnxMl.TensorAnnotation> values) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.addAllSparseInitializer
(Iterable<? extends OnnxMl.SparseTensorProto> values) Initializers (see above) stored in sparse format.addAllValueInfo
(Iterable<? extends OnnxMl.ValueInfoProto> values) Information for the values in the graph.addInitializer
(int index, OnnxMl.TensorProto value) A list of named tensor values, used to specify constant inputs of the graph.addInitializer
(int index, OnnxMl.TensorProto.Builder builderForValue) A list of named tensor values, used to specify constant inputs of the graph.addInitializer
(OnnxMl.TensorProto value) A list of named tensor values, used to specify constant inputs of the graph.addInitializer
(OnnxMl.TensorProto.Builder builderForValue) A list of named tensor values, used to specify constant inputs of the graph.A list of named tensor values, used to specify constant inputs of the graph.addInitializerBuilder
(int index) A list of named tensor values, used to specify constant inputs of the graph.addInput
(int index, OnnxMl.ValueInfoProto value) The inputs and outputs of the graph.addInput
(int index, OnnxMl.ValueInfoProto.Builder builderForValue) The inputs and outputs of the graph.addInput
(OnnxMl.ValueInfoProto value) The inputs and outputs of the graph.addInput
(OnnxMl.ValueInfoProto.Builder builderForValue) The inputs and outputs of the graph.The inputs and outputs of the graph.addInputBuilder
(int index) The inputs and outputs of the graph.addNode
(int index, OnnxMl.NodeProto value) The nodes in the graph, sorted topologically.addNode
(int index, OnnxMl.NodeProto.Builder builderForValue) The nodes in the graph, sorted topologically.addNode
(OnnxMl.NodeProto value) The nodes in the graph, sorted topologically.addNode
(OnnxMl.NodeProto.Builder builderForValue) The nodes in the graph, sorted topologically.The nodes in the graph, sorted topologically.addNodeBuilder
(int index) The nodes in the graph, sorted topologically.addOutput
(int index, OnnxMl.ValueInfoProto value) repeated .onnx.ValueInfoProto output = 12;
addOutput
(int index, OnnxMl.ValueInfoProto.Builder builderForValue) repeated .onnx.ValueInfoProto output = 12;
addOutput
(OnnxMl.ValueInfoProto value) repeated .onnx.ValueInfoProto output = 12;
addOutput
(OnnxMl.ValueInfoProto.Builder builderForValue) repeated .onnx.ValueInfoProto output = 12;
repeated .onnx.ValueInfoProto output = 12;
addOutputBuilder
(int index) repeated .onnx.ValueInfoProto output = 12;
addQuantizationAnnotation
(int index, OnnxMl.TensorAnnotation value) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.addQuantizationAnnotation
(int index, OnnxMl.TensorAnnotation.Builder builderForValue) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.addQuantizationAnnotation
(OnnxMl.TensorAnnotation.Builder builderForValue) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.addQuantizationAnnotationBuilder
(int index) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSparseInitializer
(int index, OnnxMl.SparseTensorProto value) Initializers (see above) stored in sparse format.addSparseInitializer
(int index, OnnxMl.SparseTensorProto.Builder builderForValue) Initializers (see above) stored in sparse format.Initializers (see above) stored in sparse format.addSparseInitializer
(OnnxMl.SparseTensorProto.Builder builderForValue) Initializers (see above) stored in sparse format.Initializers (see above) stored in sparse format.addSparseInitializerBuilder
(int index) Initializers (see above) stored in sparse format.addValueInfo
(int index, OnnxMl.ValueInfoProto value) Information for the values in the graph.addValueInfo
(int index, OnnxMl.ValueInfoProto.Builder builderForValue) Information for the values in the graph.Information for the values in the graph.addValueInfo
(OnnxMl.ValueInfoProto.Builder builderForValue) Information for the values in the graph.Information for the values in the graph.addValueInfoBuilder
(int index) Information for the values in the graph.build()
clear()
A human-readable documentation for this graph.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) A list of named tensor values, used to specify constant inputs of the graph.The inputs and outputs of the graph.The name of the graph.The nodes in the graph, sorted topologically.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) repeated .onnx.ValueInfoProto output = 12;
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.Initializers (see above) stored in sparse format.Information for the values in the graph.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
A human-readable documentation for this graph.com.google.protobuf.ByteString
A human-readable documentation for this graph.getInitializer
(int index) A list of named tensor values, used to specify constant inputs of the graph.getInitializerBuilder
(int index) A list of named tensor values, used to specify constant inputs of the graph.A list of named tensor values, used to specify constant inputs of the graph.int
A list of named tensor values, used to specify constant inputs of the graph.A list of named tensor values, used to specify constant inputs of the graph.getInitializerOrBuilder
(int index) A list of named tensor values, used to specify constant inputs of the graph.List<? extends OnnxMl.TensorProtoOrBuilder>
A list of named tensor values, used to specify constant inputs of the graph.getInput
(int index) The inputs and outputs of the graph.getInputBuilder
(int index) The inputs and outputs of the graph.The inputs and outputs of the graph.int
The inputs and outputs of the graph.The inputs and outputs of the graph.getInputOrBuilder
(int index) The inputs and outputs of the graph.List<? extends OnnxMl.ValueInfoProtoOrBuilder>
The inputs and outputs of the graph.getName()
The name of the graph.com.google.protobuf.ByteString
The name of the graph.getNode
(int index) The nodes in the graph, sorted topologically.getNodeBuilder
(int index) The nodes in the graph, sorted topologically.The nodes in the graph, sorted topologically.int
The nodes in the graph, sorted topologically.The nodes in the graph, sorted topologically.getNodeOrBuilder
(int index) The nodes in the graph, sorted topologically.List<? extends OnnxMl.NodeProtoOrBuilder>
The nodes in the graph, sorted topologically.getOutput
(int index) repeated .onnx.ValueInfoProto output = 12;
getOutputBuilder
(int index) repeated .onnx.ValueInfoProto output = 12;
repeated .onnx.ValueInfoProto output = 12;
int
repeated .onnx.ValueInfoProto output = 12;
repeated .onnx.ValueInfoProto output = 12;
getOutputOrBuilder
(int index) repeated .onnx.ValueInfoProto output = 12;
List<? extends OnnxMl.ValueInfoProtoOrBuilder>
repeated .onnx.ValueInfoProto output = 12;
getQuantizationAnnotation
(int index) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.getQuantizationAnnotationBuilder
(int index) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.int
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.getQuantizationAnnotationOrBuilder
(int index) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.List<? extends OnnxMl.TensorAnnotationOrBuilder>
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.getSparseInitializer
(int index) Initializers (see above) stored in sparse format.getSparseInitializerBuilder
(int index) Initializers (see above) stored in sparse format.Initializers (see above) stored in sparse format.int
Initializers (see above) stored in sparse format.Initializers (see above) stored in sparse format.getSparseInitializerOrBuilder
(int index) Initializers (see above) stored in sparse format.List<? extends OnnxMl.SparseTensorProtoOrBuilder>
Initializers (see above) stored in sparse format.getValueInfo
(int index) Information for the values in the graph.getValueInfoBuilder
(int index) Information for the values in the graph.Information for the values in the graph.int
Information for the values in the graph.Information for the values in the graph.getValueInfoOrBuilder
(int index) Information for the values in the graph.List<? extends OnnxMl.ValueInfoProtoOrBuilder>
Information for the values in the graph.boolean
A human-readable documentation for this graph.boolean
hasName()
The name of the graph.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(OnnxMl.GraphProto other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeInitializer
(int index) A list of named tensor values, used to specify constant inputs of the graph.removeInput
(int index) The inputs and outputs of the graph.removeNode
(int index) The nodes in the graph, sorted topologically.removeOutput
(int index) repeated .onnx.ValueInfoProto output = 12;
removeQuantizationAnnotation
(int index) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.removeSparseInitializer
(int index) Initializers (see above) stored in sparse format.removeValueInfo
(int index) Information for the values in the graph.setDocString
(String value) A human-readable documentation for this graph.setDocStringBytes
(com.google.protobuf.ByteString value) A human-readable documentation for this graph.setInitializer
(int index, OnnxMl.TensorProto value) A list of named tensor values, used to specify constant inputs of the graph.setInitializer
(int index, OnnxMl.TensorProto.Builder builderForValue) A list of named tensor values, used to specify constant inputs of the graph.setInput
(int index, OnnxMl.ValueInfoProto value) The inputs and outputs of the graph.setInput
(int index, OnnxMl.ValueInfoProto.Builder builderForValue) The inputs and outputs of the graph.The name of the graph.setNameBytes
(com.google.protobuf.ByteString value) The name of the graph.setNode
(int index, OnnxMl.NodeProto value) The nodes in the graph, sorted topologically.setNode
(int index, OnnxMl.NodeProto.Builder builderForValue) The nodes in the graph, sorted topologically.setOutput
(int index, OnnxMl.ValueInfoProto value) repeated .onnx.ValueInfoProto output = 12;
setOutput
(int index, OnnxMl.ValueInfoProto.Builder builderForValue) repeated .onnx.ValueInfoProto output = 12;
setQuantizationAnnotation
(int index, OnnxMl.TensorAnnotation value) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.setQuantizationAnnotation
(int index, OnnxMl.TensorAnnotation.Builder builderForValue) This field carries information to indicate the mapping among a tensor and its quantization parameter tensors.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSparseInitializer
(int index, OnnxMl.SparseTensorProto value) Initializers (see above) stored in sparse format.setSparseInitializer
(int index, OnnxMl.SparseTensorProto.Builder builderForValue) Initializers (see above) stored in sparse format.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setValueInfo
(int index, OnnxMl.ValueInfoProto value) Information for the values in the graph.setValueInfo
(int index, OnnxMl.ValueInfoProto.Builder builderForValue) Information for the values in the graph.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
setField
public OnnxMl.GraphProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
setRepeatedField
public OnnxMl.GraphProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
addRepeatedField
public OnnxMl.GraphProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.GraphProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
mergeFrom
public OnnxMl.GraphProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.GraphProto.Builder>
- Throws:
IOException
-
getNodeList
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeList
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
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNode
in interfaceOnnxMl.GraphProtoOrBuilder
-
setNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
setNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addAllNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
clearNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
removeNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
getNodeBuilder
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
getNodeOrBuilder
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getNodeOrBuilderList
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
addNodeBuilder
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
addNodeBuilder
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
getNodeBuilderList
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
-
hasName
public boolean hasName()The name of the graph.
optional string name = 2;
- Specified by:
hasName
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
The name of the graph.
optional string name = 2;
- Specified by:
getName
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the graph.
optional string name = 2;
- Specified by:
getNameBytes
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
The name of the graph.
optional string name = 2;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the graph.
optional string name = 2;
- Returns:
- This builder for chaining.
-
setNameBytes
The name of the graph.
optional string name = 2;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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
-
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
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
-
setInitializer
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;
-
setInitializer
public OnnxMl.GraphProto.Builder setInitializer(int index, OnnxMl.TensorProto.Builder builderForValue) 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;
-
addInitializer
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;
-
addInitializer
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;
-
addInitializer
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;
-
addInitializer
public OnnxMl.GraphProto.Builder addInitializer(int index, OnnxMl.TensorProto.Builder builderForValue) 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;
-
addAllInitializer
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;
-
clearInitializer
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;
-
removeInitializer
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;
-
getInitializerBuilder
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;
-
getInitializerOrBuilder
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
-
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
-
addInitializerBuilder
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;
-
addInitializerBuilder
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;
-
getInitializerBuilderList
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;
-
getSparseInitializerList
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerList
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
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializer
in interfaceOnnxMl.GraphProtoOrBuilder
-
setSparseInitializer
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
setSparseInitializer
public OnnxMl.GraphProto.Builder setSparseInitializer(int index, OnnxMl.SparseTensorProto.Builder builderForValue) Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
addSparseInitializer
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
addSparseInitializer
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
addSparseInitializer
public OnnxMl.GraphProto.Builder addSparseInitializer(OnnxMl.SparseTensorProto.Builder builderForValue) Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
addSparseInitializer
public OnnxMl.GraphProto.Builder addSparseInitializer(int index, OnnxMl.SparseTensorProto.Builder builderForValue) Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
addAllSparseInitializer
public OnnxMl.GraphProto.Builder addAllSparseInitializer(Iterable<? extends OnnxMl.SparseTensorProto> values) Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
clearSparseInitializer
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
removeSparseInitializer
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
getSparseInitializerBuilder
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
getSparseInitializerOrBuilder
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getSparseInitializerOrBuilderList
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
- Specified by:
getSparseInitializerOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
addSparseInitializerBuilder
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
addSparseInitializerBuilder
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
getSparseInitializerBuilderList
Initializers (see above) stored in sparse format.
repeated .onnx.SparseTensorProto sparse_initializer = 15;
-
hasDocString
public boolean hasDocString()A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
hasDocString
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
getDocString
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
getDocStringBytes
in interfaceOnnxMl.GraphProtoOrBuilder
- Returns:
- The bytes for docString.
-
setDocString
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Parameters:
value
- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Returns:
- This builder for chaining.
-
setDocStringBytes
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Parameters:
value
- The bytes for docString to set.- Returns:
- This builder for chaining.
-
getInputList
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputList
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
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInput
in interfaceOnnxMl.GraphProtoOrBuilder
-
setInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
setInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addAllInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
clearInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
removeInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getInputBuilder
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getInputOrBuilder
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getInputOrBuilderList
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
addInputBuilder
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
addInputBuilder
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getInputBuilderList
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
-
getOutputList
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputList
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutputCount
public int getOutputCount()repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputCount
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutput
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutput
in interfaceOnnxMl.GraphProtoOrBuilder
-
setOutput
repeated .onnx.ValueInfoProto output = 12;
-
setOutput
public OnnxMl.GraphProto.Builder setOutput(int index, OnnxMl.ValueInfoProto.Builder builderForValue) repeated .onnx.ValueInfoProto output = 12;
-
addOutput
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
repeated .onnx.ValueInfoProto output = 12;
-
addOutput
public OnnxMl.GraphProto.Builder addOutput(int index, OnnxMl.ValueInfoProto.Builder builderForValue) repeated .onnx.ValueInfoProto output = 12;
-
addAllOutput
repeated .onnx.ValueInfoProto output = 12;
-
clearOutput
repeated .onnx.ValueInfoProto output = 12;
-
removeOutput
repeated .onnx.ValueInfoProto output = 12;
-
getOutputBuilder
repeated .onnx.ValueInfoProto output = 12;
-
getOutputOrBuilder
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilder
in interfaceOnnxMl.GraphProtoOrBuilder
-
getOutputOrBuilderList
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilderList
in interfaceOnnxMl.GraphProtoOrBuilder
-
addOutputBuilder
repeated .onnx.ValueInfoProto output = 12;
-
addOutputBuilder
repeated .onnx.ValueInfoProto output = 12;
-
getOutputBuilderList
repeated .onnx.ValueInfoProto output = 12;
-
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
-
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
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
-
setValueInfo
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;
-
setValueInfo
public OnnxMl.GraphProto.Builder setValueInfo(int index, OnnxMl.ValueInfoProto.Builder builderForValue) 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;
-
addValueInfo
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;
-
addValueInfo
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;
-
addValueInfo
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;
-
addValueInfo
public OnnxMl.GraphProto.Builder addValueInfo(int index, OnnxMl.ValueInfoProto.Builder builderForValue) 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;
-
addAllValueInfo
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;
-
clearValueInfo
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;
-
removeValueInfo
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;
-
getValueInfoBuilder
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;
-
getValueInfoOrBuilder
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
-
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
-
addValueInfoBuilder
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;
-
addValueInfoBuilder
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;
-
getValueInfoBuilderList
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;
-
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
-
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
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
-
setQuantizationAnnotation
public OnnxMl.GraphProto.Builder setQuantizationAnnotation(int index, OnnxMl.TensorAnnotation value) 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;
-
setQuantizationAnnotation
public OnnxMl.GraphProto.Builder setQuantizationAnnotation(int index, OnnxMl.TensorAnnotation.Builder builderForValue) 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;
-
addQuantizationAnnotation
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;
-
addQuantizationAnnotation
public OnnxMl.GraphProto.Builder addQuantizationAnnotation(int index, OnnxMl.TensorAnnotation value) 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;
-
addQuantizationAnnotation
public OnnxMl.GraphProto.Builder addQuantizationAnnotation(OnnxMl.TensorAnnotation.Builder builderForValue) 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;
-
addQuantizationAnnotation
public OnnxMl.GraphProto.Builder addQuantizationAnnotation(int index, OnnxMl.TensorAnnotation.Builder builderForValue) 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;
-
addAllQuantizationAnnotation
public OnnxMl.GraphProto.Builder addAllQuantizationAnnotation(Iterable<? extends OnnxMl.TensorAnnotation> values) 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;
-
clearQuantizationAnnotation
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;
-
removeQuantizationAnnotation
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;
-
getQuantizationAnnotationBuilder
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;
-
getQuantizationAnnotationOrBuilder
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
-
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
-
addQuantizationAnnotationBuilder
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;
-
addQuantizationAnnotationBuilder
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;
-
getQuantizationAnnotationBuilderList
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;
-
setUnknownFields
public final OnnxMl.GraphProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-
mergeUnknownFields
public final OnnxMl.GraphProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.GraphProto.Builder>
-