AttrValue

public final class AttrValue

 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

Nested Classes

class AttrValue.Builder
 Protocol buffer representing the value for an attr used to configure an Op. 
class AttrValue.ListValue
 LINT.IfChange
 
Protobuf type tensorflow.AttrValue.ListValue
interface AttrValue.ListValueOrBuilder
enum AttrValue.ValueCase

Constants

int B_FIELD_NUMBER
int FUNC_FIELD_NUMBER
int F_FIELD_NUMBER
int I_FIELD_NUMBER
int LIST_FIELD_NUMBER
int PLACEHOLDER_FIELD_NUMBER
int SHAPE_FIELD_NUMBER
int S_FIELD_NUMBER
int TENSOR_FIELD_NUMBER
int TYPE_FIELD_NUMBER

Public Methods

boolean
equals (Object obj)
boolean
getB ()
 "bool"
 
bool b = 5;
static AttrValue
AttrValue
final static com.google.protobuf.Descriptors.Descriptor
float
getF ()
 "float"
 
float f = 4;
NameAttrList
getFunc ()
 "func" represents a function.
NameAttrListOrBuilder
getFuncOrBuilder ()
 "func" represents a function.
long
getI ()
 "int"
 
int64 i = 3;
AttrValue.ListValue
getList ()
 any "list(...)"
 
.tensorflow.AttrValue.ListValue list = 1;
AttrValue.ListValueOrBuilder
getListOrBuilder ()
 any "list(...)"
 
.tensorflow.AttrValue.ListValue list = 1;
String
getPlaceholder ()
 This is a placeholder only used in nodes defined inside a
 function.
com.google.protobuf.ByteString
getPlaceholderBytes ()
 This is a placeholder only used in nodes defined inside a
 function.
com.google.protobuf.ByteString
getS ()
 "string"
 
bytes s = 2;
int
TensorShapeProto
getShape ()
 "shape"
 
.tensorflow.TensorShapeProto shape = 7;
TensorShapeProtoOrBuilder
getShapeOrBuilder ()
 "shape"
 
.tensorflow.TensorShapeProto shape = 7;
TensorProto
getTensor ()
 "tensor"
 
.tensorflow.TensorProto tensor = 8;
TensorProtoOrBuilder
getTensorOrBuilder ()
 "tensor"
 
.tensorflow.TensorProto tensor = 8;
DataType
getType ()
 "type"
 
.tensorflow.DataType type = 6;
int
getTypeValue ()
 "type"
 
.tensorflow.DataType type = 6;
final com.google.protobuf.UnknownFieldSet
AttrValue.ValueCase
boolean
hasFunc ()
 "func" represents a function.
boolean
hasList ()
 any "list(...)"
 
.tensorflow.AttrValue.ListValue list = 1;
boolean
hasShape ()
 "shape"
 
.tensorflow.TensorShapeProto shape = 7;
boolean
hasTensor ()
 "tensor"
 
.tensorflow.TensorProto tensor = 8;
int
final boolean
static AttrValue.Builder
static AttrValue.Builder
AttrValue.Builder
static AttrValue
parseDelimitedFrom (InputStream input)
static AttrValue
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom (ByteBuffer data)
static AttrValue
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom (com.google.protobuf.CodedInputStream input)
static AttrValue
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom (com.google.protobuf.ByteString data)
static AttrValue
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttrValue
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
AttrValue.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int B_FIELD_NUMBER

Constant Value: 5

public static final int FUNC_FIELD_NUMBER

Constant Value: 10

public static final int F_FIELD_NUMBER

Constant Value: 4

public static final int I_FIELD_NUMBER

Constant Value: 3

public static final int LIST_FIELD_NUMBER

Constant Value: 1

public static final int PLACEHOLDER_FIELD_NUMBER

Constant Value: 9

public static final int SHAPE_FIELD_NUMBER

Constant Value: 7

public static final int S_FIELD_NUMBER

Constant Value: 2

public static final int TENSOR_FIELD_NUMBER

Constant Value: 8

public static final int TYPE_FIELD_NUMBER

Constant Value: 6

Public Methods