Package onnx

Interface Onnx.AttributeProtoOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Onnx.AttributeProto, Onnx.AttributeProto.Builder
    Enclosing class:
    Onnx

    public static interface Onnx.AttributeProtoOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasName

        boolean hasName()
         The name field MUST be present for this version of the IR.
         
        optional string name = 1;
        Returns:
        Whether the name field is set.
      • getName

        String getName()
         The name field MUST be present for this version of the IR.
         
        optional string name = 1;
        Returns:
        The name.
      • getNameBytes

        com.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.
      • hasRefAttrName

        boolean 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.
      • getRefAttrName

        String 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.
      • getRefAttrNameBytes

        com.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.
      • hasDocString

        boolean hasDocString()
         A human-readable documentation for this attribute. Markdown is allowed.
         
        optional string doc_string = 13;
        Returns:
        Whether the docString field is set.
      • getDocString

        String getDocString()
         A human-readable documentation for this attribute. Markdown is allowed.
         
        optional string doc_string = 13;
        Returns:
        The docString.
      • getDocStringBytes

        com.google.protobuf.ByteString getDocStringBytes()
         A human-readable documentation for this attribute. Markdown is allowed.
         
        optional string doc_string = 13;
        Returns:
        The bytes for docString.
      • hasType

        boolean 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 hueristics 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 accomodate proto3 implementations.
         
        optional .onnx.AttributeProto.AttributeType type = 20;
        Returns:
        Whether the type field is set.
      • getType

        Onnx.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 hueristics 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 accomodate proto3 implementations.
         
        optional .onnx.AttributeProto.AttributeType type = 20;
        Returns:
        The type.
      • hasF

        boolean 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.
      • getF

        float getF()
         Exactly ONE of the following fields must be present for this version of the IR
         
        optional float f = 2;
        Returns:
        The f.
      • hasI

        boolean hasI()
         int
         
        optional int64 i = 3;
        Returns:
        Whether the i field is set.
      • getI

        long getI()
         int
         
        optional int64 i = 3;
        Returns:
        The i.
      • hasS

        boolean hasS()
         UTF-8 string
         
        optional bytes s = 4;
        Returns:
        Whether the s field is set.
      • getS

        com.google.protobuf.ByteString getS()
         UTF-8 string
         
        optional bytes s = 4;
        Returns:
        The s.
      • hasT

        boolean hasT()
         tensor value
         
        optional .onnx.TensorProto t = 5;
        Returns:
        Whether the t field is set.
      • getT

        Onnx.TensorProto getT()
         tensor value
         
        optional .onnx.TensorProto t = 5;
        Returns:
        The t.
      • hasG

        boolean hasG()
         graph
         
        optional .onnx.GraphProto g = 6;
        Returns:
        Whether the g field is set.
      • getG

        Onnx.GraphProto getG()
         graph
         
        optional .onnx.GraphProto g = 6;
        Returns:
        The g.
      • getFloatsList

        List<Float> getFloatsList()
         list of floats
         
        repeated float floats = 7;
        Returns:
        A list containing the floats.
      • getFloatsCount

        int getFloatsCount()
         list of floats
         
        repeated float floats = 7;
        Returns:
        The count of floats.
      • getFloats

        float 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

        List<Long> getIntsList()
         list of ints
         
        repeated int64 ints = 8;
        Returns:
        A list containing the ints.
      • getIntsCount

        int getIntsCount()
         list of ints
         
        repeated int64 ints = 8;
        Returns:
        The count of ints.
      • getInts

        long 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.
      • getStringsList

        List<com.google.protobuf.ByteString> getStringsList()
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Returns:
        A list containing the strings.
      • getStringsCount

        int getStringsCount()
         list of UTF-8 strings
         
        repeated bytes strings = 9;
        Returns:
        The count of strings.
      • getStrings

        com.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.
      • getTensorsList

        List<Onnx.TensorProto> getTensorsList()
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getTensors

        Onnx.TensorProto getTensors​(int index)
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getTensorsCount

        int getTensorsCount()
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getTensorsOrBuilderList

        List<? extends Onnx.TensorProtoOrBuilder> getTensorsOrBuilderList()
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getTensorsOrBuilder

        Onnx.TensorProtoOrBuilder getTensorsOrBuilder​(int index)
         list of tensors
         
        repeated .onnx.TensorProto tensors = 10;
      • getGraphsList

        List<Onnx.GraphProto> getGraphsList()
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • getGraphs

        Onnx.GraphProto getGraphs​(int index)
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • getGraphsCount

        int getGraphsCount()
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • getGraphsOrBuilderList

        List<? extends Onnx.GraphProtoOrBuilder> getGraphsOrBuilderList()
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;
      • getGraphsOrBuilder

        Onnx.GraphProtoOrBuilder getGraphsOrBuilder​(int index)
         list of graph
         
        repeated .onnx.GraphProto graphs = 11;