OpDef.AttrDef.Builder

public static final class OpDef.AttrDef.Builder

 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

Public Methods

OpDef.AttrDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
OpDef.AttrDef
OpDef.AttrDef
OpDef.AttrDef.Builder
OpDef.AttrDef.Builder
clearAllowedValues ()
 The set of allowed values.
OpDef.AttrDef.Builder
clearDefaultValue ()
 A reasonable default for this attribute if the user does not supply
 a value.
OpDef.AttrDef.Builder
clearDescription ()
 Human-readable description.
OpDef.AttrDef.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
OpDef.AttrDef.Builder
clearHasMinimum ()
 For type == "int", this is a minimum value.
OpDef.AttrDef.Builder
clearMinimum ()
int64 minimum = 6;
OpDef.AttrDef.Builder
clearName ()
 A descriptive name for the argument.
OpDef.AttrDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
OpDef.AttrDef.Builder
clearType ()
 One of the type names from attr_value.proto ("string", "list(string)",
 "int", etc.).
OpDef.AttrDef.Builder
AttrValue
getAllowedValues ()
 The set of allowed values.
AttrValue.Builder
getAllowedValuesBuilder ()
 The set of allowed values.
AttrValueOrBuilder
getAllowedValuesOrBuilder ()
 The set of allowed values.
OpDef.AttrDef
AttrValue
getDefaultValue ()
 A reasonable default for this attribute if the user does not supply
 a value.
AttrValue.Builder
getDefaultValueBuilder ()
 A reasonable default for this attribute if the user does not supply
 a value.
AttrValueOrBuilder
getDefaultValueOrBuilder ()
 A reasonable default for this attribute if the user does not supply
 a value.
String
getDescription ()
 Human-readable description.
com.google.protobuf.ByteString
getDescriptionBytes ()
 Human-readable description.
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
getHasMinimum ()
 For type == "int", this is a minimum value.
long
getMinimum ()
int64 minimum = 6;
String
getName ()
 A descriptive name for the argument.
com.google.protobuf.ByteString
getNameBytes ()
 A descriptive name for the argument.
String
getType ()
 One of the type names from attr_value.proto ("string", "list(string)",
 "int", etc.).
com.google.protobuf.ByteString
getTypeBytes ()
 One of the type names from attr_value.proto ("string", "list(string)",
 "int", etc.).
boolean
hasAllowedValues ()
 The set of allowed values.
boolean
hasDefaultValue ()
 A reasonable default for this attribute if the user does not supply
 a value.
final boolean
OpDef.AttrDef.Builder
mergeAllowedValues ( AttrValue value)
 The set of allowed values.
OpDef.AttrDef.Builder
mergeDefaultValue ( AttrValue value)
 A reasonable default for this attribute if the user does not supply
 a value.
OpDef.AttrDef.Builder
mergeFrom (com.google.protobuf.Message other)
OpDef.AttrDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final OpDef.AttrDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
OpDef.AttrDef.Builder
setAllowedValues ( AttrValue.Builder builderForValue)
 The set of allowed values.
OpDef.AttrDef.Builder
setAllowedValues ( AttrValue value)
 The set of allowed values.
OpDef.AttrDef.Builder
setDefaultValue ( AttrValue value)
 A reasonable default for this attribute if the user does not supply
 a value.
OpDef.AttrDef.Builder
setDefaultValue ( AttrValue.Builder builderForValue)
 A reasonable default for this attribute if the user does not supply
 a value.
OpDef.AttrDef.Builder
setDescription (String value)
 Human-readable description.
OpDef.AttrDef.Builder
setDescriptionBytes (com.google.protobuf.ByteString value)
 Human-readable description.
OpDef.AttrDef.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
OpDef.AttrDef.Builder
setHasMinimum (boolean value)
 For type == "int", this is a minimum value.
OpDef.AttrDef.Builder
setMinimum (long value)
int64 minimum = 6;
OpDef.AttrDef.Builder
setName (String value)
 A descriptive name for the argument.
OpDef.AttrDef.Builder
setNameBytes (com.google.protobuf.ByteString value)
 A descriptive name for the argument.
OpDef.AttrDef.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
OpDef.AttrDef.Builder
setType (String value)
 One of the type names from attr_value.proto ("string", "list(string)",
 "int", etc.).
OpDef.AttrDef.Builder
setTypeBytes (com.google.protobuf.ByteString value)
 One of the type names from attr_value.proto ("string", "list(string)",
 "int", etc.).
final OpDef.AttrDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public OpDef.AttrDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public OpDef.AttrDef build ()

public OpDef.AttrDef buildPartial ()

public OpDef.AttrDef.Builder clear ()

public OpDef.AttrDef.Builder clearAllowedValues ()

 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;

public OpDef.AttrDef.Builder clearDefaultValue ()

 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;

public OpDef.AttrDef.Builder clearDescription ()

 Human-readable description.
 
string description = 4;