Class AttrValue

  • All Implemented Interfaces:
    Serializable, org.nd4j.shade.protobuf.Message, org.nd4j.shade.protobuf.MessageLite, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, AttrValueOrBuilder

    public final class AttrValue
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements AttrValueOrBuilder
     Protocol buffer representing the value for an attr used to configure an Op.
     Comment indicates the corresponding attr type.  Only the field matching the
     attr type may be filled.
     
    Protobuf type tensorflow.AttrValue
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class org.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:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • hasS

        public boolean hasS()
         "string"
         
        bytes s = 2;
        Specified by:
        hasS in interface AttrValueOrBuilder
        Returns:
        Whether the s field is set.
      • getS

        public org.nd4j.shade.protobuf.ByteString getS()
         "string"
         
        bytes s = 2;
        Specified by:
        getS in interface AttrValueOrBuilder
        Returns:
        The s.
      • hasI

        public boolean hasI()
         "int"
         
        int64 i = 3;
        Specified by:
        hasI in interface AttrValueOrBuilder
        Returns:
        Whether the i field is set.
      • getI

        public long getI()
         "int"
         
        int64 i = 3;
        Specified by:
        getI in interface AttrValueOrBuilder
        Returns:
        The i.
      • hasF

        public boolean hasF()
         "float"
         
        float f = 4;
        Specified by:
        hasF in interface AttrValueOrBuilder
        Returns:
        Whether the f field is set.
      • getF

        public float getF()
         "float"
         
        float f = 4;
        Specified by:
        getF in interface AttrValueOrBuilder
        Returns:
        The f.
      • hasB

        public boolean hasB()
         "bool"
         
        bool b = 5;
        Specified by:
        hasB in interface AttrValueOrBuilder
        Returns:
        Whether the b field is set.
      • getB

        public boolean getB()
         "bool"
         
        bool b = 5;
        Specified by:
        getB in interface AttrValueOrBuilder
        Returns:
        The b.
      • hasType

        public boolean hasType()
         "type"
         
        .tensorflow.DataType type = 6;
        Specified by:
        hasType in interface AttrValueOrBuilder
        Returns:
        Whether the type field is set.
      • getTypeValue

        public int getTypeValue()
         "type"
         
        .tensorflow.DataType type = 6;
        Specified by:
        getTypeValue in interface AttrValueOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • hasShape

        public boolean hasShape()
         "shape"
         
        .tensorflow.TensorShapeProto shape = 7;
        Specified by:
        hasShape in interface AttrValueOrBuilder
        Returns:
        Whether the shape field is set.
      • hasTensor

        public boolean hasTensor()
         "tensor"
         
        .tensorflow.TensorProto tensor = 8;
        Specified by:
        hasTensor in interface AttrValueOrBuilder
        Returns:
        Whether the tensor field is set.
      • hasList

        public boolean hasList()
         any "list(...)"
         
        .tensorflow.AttrValue.ListValue list = 1;
        Specified by:
        hasList in interface AttrValueOrBuilder
        Returns:
        Whether the list field is set.
      • hasFunc

        public boolean hasFunc()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
        Specified by:
        hasFunc in interface AttrValueOrBuilder
        Returns:
        Whether the func field is set.
      • getFunc

        public NameAttrList getFunc()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
        Specified by:
        getFunc in interface AttrValueOrBuilder
        Returns:
        The func.
      • getFuncOrBuilder

        public NameAttrListOrBuilder getFuncOrBuilder()
         "func" represents a function. func.name is a function's name or
         a primitive op's name. func.attr.first is the name of an attr
         defined for that function. func.attr.second is the value for
         that attr in the instantiation.
         
        .tensorflow.NameAttrList func = 10;
        Specified by:
        getFuncOrBuilder in interface AttrValueOrBuilder
      • hasPlaceholder

        public boolean hasPlaceholder()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Specified by:
        hasPlaceholder in interface AttrValueOrBuilder
        Returns:
        Whether the placeholder field is set.
      • getPlaceholder

        public String getPlaceholder()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Specified by:
        getPlaceholder in interface AttrValueOrBuilder
        Returns:
        The placeholder.
      • getPlaceholderBytes

        public org.nd4j.shade.protobuf.ByteString getPlaceholderBytes()
         This is a placeholder only used in nodes defined inside a
         function.  It indicates the attr value will be supplied when
         the function is instantiated.  For example, let us suppose a
         node "N" in function "FN". "N" has an attr "A" with value
         placeholder = "foo". When FN is instantiated with attr "foo"
         set to "bar", the instantiated node N's attr A will have been
         given the value "bar".
         
        string placeholder = 9;
        Specified by:
        getPlaceholderBytes in interface AttrValueOrBuilder
        Returns:
        The bytes for placeholder.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(org.nd4j.shade.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        writeTo in class org.nd4j.shade.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.nd4j.shade.protobuf.Message
        Overrides:
        equals in class org.nd4j.shade.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.nd4j.shade.protobuf.Message
        Overrides:
        hashCode in class org.nd4j.shade.protobuf.AbstractMessage
      • parseFrom

        public static AttrValue parseFrom​(ByteBuffer data)
                                   throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AttrValue parseFrom​(ByteBuffer data,
                                          org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AttrValue parseFrom​(org.nd4j.shade.protobuf.ByteString data)
                                   throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AttrValue 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 AttrValue parseFrom​(byte[] data)
                                   throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AttrValue parseFrom​(byte[] data,
                                          org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AttrValue parseFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                          org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AttrValue.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.MessageLite
      • toBuilder

        public AttrValue.Builder toBuilder()
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.Message
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.MessageLite
      • newBuilderForType

        protected AttrValue.Builder newBuilderForType​(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static AttrValue getDefaultInstance()
      • parser

        public static org.nd4j.shade.protobuf.Parser<AttrValue> parser()
      • getParserForType

        public org.nd4j.shade.protobuf.Parser<AttrValue> getParserForType()
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AttrValue getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder