Package onnx

Interface Onnx.AttributeProtoOrBuilder

  • All Superinterfaces:
    org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Onnx.AttributeProto, Onnx.AttributeProto.Builder
    Enclosing class:
    Onnx

    public static interface Onnx.AttributeProtoOrBuilder
    extends org.nd4j.shade.protobuf.MessageOrBuilder
    • Method Detail

      • getName

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

        org.nd4j.shade.protobuf.ByteString getNameBytes()
         The name field MUST be present for this version of the IR.
         
        string name = 1;
        Returns:
        The bytes for name.
      • 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.
         
        string ref_attr_name = 21;
        Returns:
        The refAttrName.
      • getRefAttrNameBytes

        org.nd4j.shade.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.
         
        string ref_attr_name = 21;
        Returns:
        The bytes for refAttrName.
      • getDocString

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

        org.nd4j.shade.protobuf.ByteString getDocStringBytes()
         A human-readable documentation for this attribute. Markdown is allowed.
         
        string doc_string = 13;
        Returns:
        The bytes for docString.
      • getTypeValue

        int getTypeValue()
         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.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Returns:
        The enum numeric value on the wire for type.
      • 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 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.
         
        .onnx.AttributeProto.AttributeType type = 20;
        Returns:
        The type.
      • getF

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

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

        org.nd4j.shade.protobuf.ByteString getS()
         UTF-8 string
         
        bytes s = 4;
        Returns:
        The s.
      • hasT

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

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

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

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

        boolean hasSparseTensor()
         sparse tensor value
         
        .onnx.SparseTensorProto sparse_tensor = 22;
        Returns:
        Whether the sparseTensor field is set.
      • getSparseTensor

        Onnx.SparseTensorProto getSparseTensor()
         sparse tensor value
         
        .onnx.SparseTensorProto sparse_tensor = 22;
        Returns:
        The sparseTensor.
      • hasTp

        boolean hasTp()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
        Returns:
        Whether the tp field is set.
      • getTp

        Onnx.TypeProto getTp()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
        Returns:
        The tp.
      • getTpOrBuilder

        Onnx.TypeProtoOrBuilder getTpOrBuilder()
         Do not use field below, it's deprecated.
         optional ValueProto v = 12;         // value - subsumes everything but graph
         
        .onnx.TypeProto tp = 14;
      • 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<org.nd4j.shade.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

        org.nd4j.shade.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;
      • getSparseTensorsList

        List<Onnx.SparseTensorProto> getSparseTensorsList()
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getSparseTensors

        Onnx.SparseTensorProto getSparseTensors​(int index)
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getSparseTensorsCount

        int getSparseTensorsCount()
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getSparseTensorsOrBuilderList

        List<? extends Onnx.SparseTensorProtoOrBuilder> getSparseTensorsOrBuilderList()
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getSparseTensorsOrBuilder

        Onnx.SparseTensorProtoOrBuilder getSparseTensorsOrBuilder​(int index)
         list of sparse tensors
         
        repeated .onnx.SparseTensorProto sparse_tensors = 23;
      • getTypeProtosList

        List<Onnx.TypeProto> getTypeProtosList()
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • getTypeProtos

        Onnx.TypeProto getTypeProtos​(int index)
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • getTypeProtosCount

        int getTypeProtosCount()
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • getTypeProtosOrBuilderList

        List<? extends Onnx.TypeProtoOrBuilder> getTypeProtosOrBuilderList()
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;
      • getTypeProtosOrBuilder

        Onnx.TypeProtoOrBuilder getTypeProtosOrBuilder​(int index)
         list of type protos
         
        repeated .onnx.TypeProto type_protos = 15;