Package org.tensorflow.framework
Interface ApiDef.AttrOrBuilder
-
- All Superinterfaces:
org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ApiDef.Attr
,ApiDef.Attr.Builder
- Enclosing class:
- ApiDef
public static interface ApiDef.AttrOrBuilder extends org.nd4j.shade.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttrValue
getDefaultValue()
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.org.nd4j.shade.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
getName()
string name = 1;
org.nd4j.shade.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.org.nd4j.shade.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.-
Methods inherited from interface org.nd4j.shade.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
string name = 1;
- Returns:
- The name.
-
getNameBytes
org.nd4j.shade.protobuf.ByteString getNameBytes()
string name = 1;
- Returns:
- The bytes for name.
-
getRenameTo
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;
- Returns:
- The renameTo.
-
getRenameToBytes
org.nd4j.shade.protobuf.ByteString getRenameToBytes()
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;
- Returns:
- The bytes for renameTo.
-
hasDefaultValue
boolean hasDefaultValue()
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;
- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
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;
- Returns:
- The defaultValue.
-
getDefaultValueOrBuilder
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;
-
getDescription
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;
- Returns:
- The description.
-
getDescriptionBytes
org.nd4j.shade.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;
- Returns:
- The bytes for description.
-
-