Interface OnnxMl.AttributeProtoOrBuilder
- All Superinterfaces:
- com.google.protobuf.MessageLiteOrBuilder,- com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
- OnnxMl.AttributeProto,- OnnxMl.AttributeProto.Builder
- Enclosing class:
- OnnxMl
public static interface OnnxMl.AttributeProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
- 
Method SummaryModifier and TypeMethodDescriptionA human-readable documentation for this attribute.com.google.protobuf.ByteStringA human-readable documentation for this attribute.floatgetF()Exactly ONE of the following fields must be present for this version of the IRfloatgetFloats(int index) list of floatsintlist of floatslist of floatsgetG()graphgraphgetGraphs(int index) list of graphintlist of graphlist of graphgetGraphsOrBuilder(int index) list of graphList<? extends OnnxMl.GraphProtoOrBuilder> list of graphlonggetI()intlonggetInts(int index) list of intsintlist of intslist of intsgetName()The name field MUST be present for this version of the IR.com.google.protobuf.ByteStringThe name field MUST be present for this version of the IR.if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteStringif ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.com.google.protobuf.ByteStringgetS()UTF-8 stringsparse tensor valuesparse tensor valuegetSparseTensors(int index) list of sparse tensorsintlist of sparse tensorslist of sparse tensorsgetSparseTensorsOrBuilder(int index) list of sparse tensorsList<? extends OnnxMl.SparseTensorProtoOrBuilder> list of sparse tensorscom.google.protobuf.ByteStringgetStrings(int index) list of UTF-8 stringsintlist of UTF-8 stringsList<com.google.protobuf.ByteString> list of UTF-8 stringsgetT()tensor valuegetTensors(int index) list of tensorsintlist of tensorslist of tensorsgetTensorsOrBuilder(int index) list of tensorsList<? extends OnnxMl.TensorProtoOrBuilder> list of tensorstensor valuegetType()The type field MUST be present for this version of the IR.booleanA human-readable documentation for this attribute.booleanhasF()Exactly ONE of the following fields must be present for this version of the IRbooleanhasG()graphbooleanhasI()intbooleanhasName()The name field MUST be present for this version of the IR.booleanif ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.booleanhasS()UTF-8 stringbooleansparse tensor valuebooleanhasT()tensor valuebooleanhasType()The type field MUST be present for this version of the IR.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilderisInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilderfindInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
- 
Method Details- 
hasNameboolean hasName()The name field MUST be present for this version of the IR. optional string name = 1;- Returns:
- Whether the name field is set.
 
- 
getNameString getName()The name field MUST be present for this version of the IR. optional string name = 1;- Returns:
- The name.
 
- 
getNameBytescom.google.protobuf.ByteString getNameBytes()The name field MUST be present for this version of the IR. optional string name = 1;- Returns:
- The bytes for name.
 
- 
hasRefAttrNameboolean hasRefAttrName()if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph. optional string ref_attr_name = 21;- Returns:
- Whether the refAttrName field is set.
 
- 
getRefAttrNameString getRefAttrName()if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph. optional string ref_attr_name = 21;- Returns:
- The refAttrName.
 
- 
getRefAttrNameBytescom.google.protobuf.ByteString getRefAttrNameBytes()if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph. optional string ref_attr_name = 21;- Returns:
- The bytes for refAttrName.
 
- 
hasDocStringboolean hasDocString()A human-readable documentation for this attribute. Markdown is allowed. optional string doc_string = 13;- Returns:
- Whether the docString field is set.
 
- 
getDocStringString getDocString()A human-readable documentation for this attribute. Markdown is allowed. optional string doc_string = 13;- Returns:
- The docString.
 
- 
getDocStringBytescom.google.protobuf.ByteString getDocStringBytes()A human-readable documentation for this attribute. Markdown is allowed. optional string doc_string = 13;- Returns:
- The bytes for docString.
 
- 
hasTypeboolean hasType()The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations. optional .onnx.AttributeProto.AttributeType type = 20;- Returns:
- Whether the type field is set.
 
- 
getTypeOnnxMl.AttributeProto.AttributeType getType()The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations. optional .onnx.AttributeProto.AttributeType type = 20;- Returns:
- The type.
 
- 
hasFboolean hasF()Exactly ONE of the following fields must be present for this version of the IR optional float f = 2;- Returns:
- Whether the f field is set.
 
- 
getFfloat getF()Exactly ONE of the following fields must be present for this version of the IR optional float f = 2;- Returns:
- The f.
 
- 
hasIboolean hasI()int optional int64 i = 3;- Returns:
- Whether the i field is set.
 
- 
getIlong getI()int optional int64 i = 3;- Returns:
- The i.
 
- 
hasSboolean hasS()UTF-8 string optional bytes s = 4;- Returns:
- Whether the s field is set.
 
- 
getScom.google.protobuf.ByteString getS()UTF-8 string optional bytes s = 4;- Returns:
- The s.
 
- 
hasTboolean hasT()tensor value optional .onnx.TensorProto t = 5;- Returns:
- Whether the t field is set.
 
- 
getT
- 
getTOrBuilderOnnxMl.TensorProtoOrBuilder getTOrBuilder()tensor value optional .onnx.TensorProto t = 5;
- 
hasGboolean hasG()graph optional .onnx.GraphProto g = 6;- Returns:
- Whether the g field is set.
 
- 
getG
- 
getGOrBuilderOnnxMl.GraphProtoOrBuilder getGOrBuilder()graph optional .onnx.GraphProto g = 6;
- 
hasSparseTensorboolean hasSparseTensor()sparse tensor value optional .onnx.SparseTensorProto sparse_tensor = 22;- Returns:
- Whether the sparseTensor field is set.
 
- 
getSparseTensorOnnxMl.SparseTensorProto getSparseTensor()sparse tensor value optional .onnx.SparseTensorProto sparse_tensor = 22;- Returns:
- The sparseTensor.
 
- 
getSparseTensorOrBuilderOnnxMl.SparseTensorProtoOrBuilder getSparseTensorOrBuilder()sparse tensor value optional .onnx.SparseTensorProto sparse_tensor = 22;
- 
getFloatsList
- 
getFloatsCountint getFloatsCount()list of floats repeated float floats = 7;- Returns:
- The count of floats.
 
- 
getFloatsfloat getFloats(int index) list of floats repeated float floats = 7;- Parameters:
- index- The index of the element to return.
- Returns:
- The floats at the given index.
 
- 
getIntsList
- 
getIntsCountint getIntsCount()list of ints repeated int64 ints = 8;- Returns:
- The count of ints.
 
- 
getIntslong getInts(int index) list of ints repeated int64 ints = 8;- Parameters:
- index- The index of the element to return.
- Returns:
- The ints at the given index.
 
- 
getStringsListList<com.google.protobuf.ByteString> getStringsList()list of UTF-8 strings repeated bytes strings = 9;- Returns:
- A list containing the strings.
 
- 
getStringsCountint getStringsCount()list of UTF-8 strings repeated bytes strings = 9;- Returns:
- The count of strings.
 
- 
getStringscom.google.protobuf.ByteString getStrings(int index) list of UTF-8 strings repeated bytes strings = 9;- Parameters:
- index- The index of the element to return.
- Returns:
- The strings at the given index.
 
- 
getTensorsListList<OnnxMl.TensorProto> getTensorsList()list of tensors repeated .onnx.TensorProto tensors = 10;
- 
getTensorslist of tensors repeated .onnx.TensorProto tensors = 10;
- 
getTensorsCountint getTensorsCount()list of tensors repeated .onnx.TensorProto tensors = 10;
- 
getTensorsOrBuilderListList<? extends OnnxMl.TensorProtoOrBuilder> getTensorsOrBuilderList()list of tensors repeated .onnx.TensorProto tensors = 10;
- 
getTensorsOrBuilderlist of tensors repeated .onnx.TensorProto tensors = 10;
- 
getGraphsListList<OnnxMl.GraphProto> getGraphsList()list of graph repeated .onnx.GraphProto graphs = 11;
- 
getGraphslist of graph repeated .onnx.GraphProto graphs = 11;
- 
getGraphsCountint getGraphsCount()list of graph repeated .onnx.GraphProto graphs = 11;
- 
getGraphsOrBuilderListList<? extends OnnxMl.GraphProtoOrBuilder> getGraphsOrBuilderList()list of graph repeated .onnx.GraphProto graphs = 11;
- 
getGraphsOrBuilderlist of graph repeated .onnx.GraphProto graphs = 11;
- 
getSparseTensorsListList<OnnxMl.SparseTensorProto> getSparseTensorsList()list of sparse tensors repeated .onnx.SparseTensorProto sparse_tensors = 23;
- 
getSparseTensorslist of sparse tensors repeated .onnx.SparseTensorProto sparse_tensors = 23;
- 
getSparseTensorsCountint getSparseTensorsCount()list of sparse tensors repeated .onnx.SparseTensorProto sparse_tensors = 23;
- 
getSparseTensorsOrBuilderListList<? extends OnnxMl.SparseTensorProtoOrBuilder> getSparseTensorsOrBuilderList()list of sparse tensors repeated .onnx.SparseTensorProto sparse_tensors = 23;
- 
getSparseTensorsOrBuilderlist of sparse tensors repeated .onnx.SparseTensorProto sparse_tensors = 23;
 
-