ApiDef.Attr.Builder

public static final class ApiDef.Attr.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.ApiDef.Attr

Public Methods

ApiDef.Attr.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiDef.Attr
ApiDef.Attr
ApiDef.Attr.Builder
ApiDef.Attr.Builder
clearDefaultValue ()
 Specify a new default value to use for this attr.
ApiDef.Attr.Builder
clearDescription ()
 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
ApiDef.Attr.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
ApiDef.Attr.Builder
clearName ()
string name = 1;
ApiDef.Attr.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
ApiDef.Attr.Builder
clearRenameTo ()
 Change the name used to access this attr in the API from what
 is used in the GraphDef.
ApiDef.Attr.Builder
ApiDef.Attr
AttrValue
getDefaultValue ()
 Specify a new default value to use for this attr.
AttrValue.Builder
getDefaultValueBuilder ()
 Specify a new default value to use for this attr.
AttrValueOrBuilder
getDefaultValueOrBuilder ()
 Specify a new default value to use for this attr.
String
getDescription ()
 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
com.google.protobuf.ByteString
getDescriptionBytes ()
 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getName ()
string name = 1;
com.google.protobuf.ByteString
getNameBytes ()
string name = 1;
String
getRenameTo ()
 Change the name used to access this attr in the API from what
 is used in the GraphDef.
com.google.protobuf.ByteString
getRenameToBytes ()
 Change the name used to access this attr in the API from what
 is used in the GraphDef.
boolean
hasDefaultValue ()
 Specify a new default value to use for this attr.
final boolean
ApiDef.Attr.Builder
mergeDefaultValue ( AttrValue value)
 Specify a new default value to use for this attr.
ApiDef.Attr.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ApiDef.Attr.Builder
mergeFrom (com.google.protobuf.Message other)
final ApiDef.Attr.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
ApiDef.Attr.Builder
setDefaultValue ( AttrValue.Builder builderForValue)
 Specify a new default value to use for this attr.
ApiDef.Attr.Builder
setDefaultValue ( AttrValue value)
 Specify a new default value to use for this attr.
ApiDef.Attr.Builder
setDescription (String value)
 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
ApiDef.Attr.Builder
setDescriptionBytes (com.google.protobuf.ByteString value)
 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
ApiDef.Attr.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiDef.Attr.Builder
setName (String value)
string name = 1;
ApiDef.Attr.Builder
setNameBytes (com.google.protobuf.ByteString value)
string name = 1;
ApiDef.Attr.Builder
setRenameTo (String value)
 Change the name used to access this attr in the API from what
 is used in the GraphDef.
ApiDef.Attr.Builder
setRenameToBytes (com.google.protobuf.ByteString value)
 Change the name used to access this attr in the API from what
 is used in the GraphDef.
ApiDef.Attr.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final ApiDef.Attr.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public ApiDef.Attr.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public ApiDef.Attr build ()

public ApiDef.Attr buildPartial ()

public ApiDef.Attr.Builder clear ()

public ApiDef.Attr.Builder clearDefaultValue ()

 Specify a new default value to use for this attr.  This default
 will be used when creating new graphs, as opposed to the
 default in the OpDef, which will be used when interpreting old
 GraphDefs.
 
.tensorflow.AttrValue default_value = 3;

public ApiDef.Attr.Builder clearDescription ()

 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
 
string description = 4;

public ApiDef.Attr.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public ApiDef.Attr.Builder clearName ()

string name = 1;

public ApiDef.Attr.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public ApiDef.Attr.Builder clearRenameTo ()

 Change the name used to access this attr in the API from what
 is used in the GraphDef.  Note that these names in `backticks`
 will also be replaced in the summary & description fields.
 
string rename_to = 2;

public ApiDef.Attr.Builder clone ()

public ApiDef.Attr getDefaultInstanceForType ()

public AttrValue getDefaultValue ()

 Specify a new default value to use for this attr.  This default
 will be used when creating new graphs, as opposed to the
 default in the OpDef, which will be used when interpreting old
 GraphDefs.
 
.tensorflow.AttrValue default_value = 3;

public AttrValue.Builder getDefaultValueBuilder ()

 Specify a new default value to use for this attr.  This default
 will be used when creating new graphs, as opposed to the
 default in the OpDef, which will be used when interpreting old
 GraphDefs.
 
.tensorflow.AttrValue default_value = 3;

public AttrValueOrBuilder getDefaultValueOrBuilder ()

 Specify a new default value to use for this attr.  This default
 will be used when creating new graphs, as opposed to the
 default in the OpDef, which will be used when interpreting old
 GraphDefs.
 
.tensorflow.AttrValue default_value = 3;

public String getDescription ()

 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
 
string description = 4;

public com.google.protobuf.ByteString getDescriptionBytes ()

 Note: this will replace any inherited attr doc, there is no current
 way of modifying attr descriptions as can be done with op descriptions.
 
string description = 4;

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public String getName ()

string name = 1;

public com.google.protobuf.ByteString getNameBytes ()

string name = 1;

public String getRenameTo ()

 Change the name used to access this attr in the API from what
 is used in the GraphDef.  Note that these names in `backticks`
 will also be replaced in the summary & description fields.
 
string rename_to = 2;

public com.google.protobuf.ByteString getRenameT