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.
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 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 |
hashCode()
|
final boolean | |
static AttrValue.Builder |
newBuilder(AttrValue prototype)
|
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
|
parser()
|
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
public boolean equals (Object obj)
public boolean getB ()
"bool"
bool b = 5;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public float getF ()
"float"
float f = 4;
public NameAttrList getFunc ()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
public NameAttrListOrBuilder getFuncOrBuilder ()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
public long getI ()
"int"
int64 i = 3;
public AttrValue.ListValueOrBuilder getListOrBuilder ()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public
getParserForType
()
public String getPlaceholder ()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;
public com.google.protobuf.ByteString getPlaceholderBytes ()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;
public com.google.protobuf.ByteString getS ()
"string"
bytes s = 2;
public int getSerializedSize ()
public TensorShapeProtoOrBuilder getShapeOrBuilder ()
"shape"
.tensorflow.TensorShapeProto shape = 7;
public int getTypeValue ()
"type"
.tensorflow.DataType type = 6;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public boolean hasFunc ()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
public boolean hasList ()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
public boolean hasShape ()
"shape"
.tensorflow.TensorShapeProto shape = 7;
public boolean hasTensor ()
"tensor"
.tensorflow.TensorProto tensor = 8;
public int hashCode ()
public final boolean isInitialized ()
public static AttrValue parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static AttrValue parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static AttrValue parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static AttrValue parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static AttrValue parseFrom (com.google.protobuf.ByteString data)
Throws
InvalidProtocolBufferException |
---|
public static AttrValue parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static AttrValue parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public
static
parser
()
public void writeTo (com.google.protobuf.CodedOutputStream output)
Throws
IOException |
---|