Class OpDef.AttrDef

  • All Implemented Interfaces:
    Serializable, org.nd4j.shade.protobuf.Message, org.nd4j.shade.protobuf.MessageLite, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, OpDef.AttrDefOrBuilder
    Enclosing class:
    OpDef

    public static final class OpDef.AttrDef
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements OpDef.AttrDefOrBuilder
     Description of the graph-construction-time configuration of this
     Op.  That is to say, this describes the attr fields that will
     be specified in the NodeDef.
     
    Protobuf type tensorflow.OpDef.AttrDef
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OpDef.AttrDef.Builder
      Description of the graph-construction-time configuration of this Op.
      • Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3

        org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.AbstractMessageLite

        org.nd4j.shade.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • getName

        public String getName()
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Specified by:
        getName in interface OpDef.AttrDefOrBuilder
        Returns:
        The name.
      • getNameBytes

        public org.nd4j.shade.protobuf.ByteString getNameBytes()
         A descriptive name for the argument.  May be used, e.g. by the
         Python client, as a keyword argument name, and so should match
         the regexp "[a-z][a-z0-9_]+".
         
        string name = 1;
        Specified by:
        getNameBytes in interface OpDef.AttrDefOrBuilder
        Returns:
        The bytes for name.
      • getType

        public String getType()
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Specified by:
        getType in interface OpDef.AttrDefOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public org.nd4j.shade.protobuf.ByteString getTypeBytes()
         One of the type names from attr_value.proto ("string", "list(string)",
         "int", etc.).
         
        string type = 2;
        Specified by:
        getTypeBytes in interface OpDef.AttrDefOrBuilder
        Returns:
        The bytes for type.
      • hasDefaultValue

        public boolean hasDefaultValue()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .tensorflow.AttrValue default_value = 3;
        Specified by:
        hasDefaultValue in interface OpDef.AttrDefOrBuilder
        Returns:
        Whether the defaultValue field is set.
      • getDefaultValue

        public AttrValue getDefaultValue()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .tensorflow.AttrValue default_value = 3;
        Specified by:
        getDefaultValue in interface OpDef.AttrDefOrBuilder
        Returns:
        The defaultValue.
      • getDefaultValueOrBuilder

        public AttrValueOrBuilder getDefaultValueOrBuilder()
         A reasonable default for this attribute if the user does not supply
         a value.  If not specified, the user must supply a value.
         
        .tensorflow.AttrValue default_value = 3;
        Specified by:
        getDefaultValueOrBuilder in interface OpDef.AttrDefOrBuilder
      • getDescriptionBytes

        public org.nd4j.shade.protobuf.ByteString getDescriptionBytes()
         Human-readable description.
         
        string description = 4;
        Specified by:
        getDescriptionBytes in interface OpDef.AttrDefOrBuilder
        Returns:
        The bytes for description.
      • getHasMinimum

        public boolean getHasMinimum()
         For type == "int", this is a minimum value.  For "list(___)"
         types, this is the minimum length.
         
        bool has_minimum = 5;
        Specified by:
        getHasMinimum in interface OpDef.AttrDefOrBuilder
        Returns:
        The hasMinimum.
      • hasAllowedValues

        public boolean hasAllowedValues()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .tensorflow.AttrValue allowed_values = 7;
        Specified by:
        hasAllowedValues in interface OpDef.AttrDefOrBuilder
        Returns:
        Whether the allowedValues field is set.
      • getAllowedValues

        public AttrValue getAllowedValues()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .tensorflow.AttrValue allowed_values = 7;
        Specified by:
        getAllowedValues in interface OpDef.AttrDefOrBuilder
        Returns:
        The allowedValues.
      • getAllowedValuesOrBuilder

        public AttrValueOrBuilder getAllowedValuesOrBuilder()
         The set of allowed values.  Has type that is the "list" version
         of the "type" field above (uses the "list" field of AttrValue).
         If type == "type" or "list(type)" above, then the "type" field
         of "allowed_values.list" has the set of allowed DataTypes.
         If type == "string" or "list(string)", then the "s" field of
         "allowed_values.list" has the set of allowed strings.
         
        .tensorflow.AttrValue allowed_values = 7;
        Specified by:
        getAllowedValuesOrBuilder in interface OpDef.AttrDefOrBuilder
      • 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 OpDef.AttrDef parseFrom​(ByteBuffer data)
                                       throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public static OpDef.AttrDef getDefaultInstance()
      • parser

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

        public org.nd4j.shade.protobuf.Parser<OpDef.AttrDef> 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 OpDef.AttrDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder