Package org.tensorflow.framework
Interface AttrValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AttrValue,AttrValue.Builder
public interface AttrValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetB()"bool"floatgetF()"float"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."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.longgetI()"int"getList()any "list(...)"any "list(...)"This is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteStringThis is a placeholder only used in nodes defined inside a function.com.google.protobuf.ByteStringgetS()"string"getShape()"shape""shape""tensor""tensor"getType()"type"int"type"booleanhasB()"bool"booleanhasF()"float"booleanhasFunc()"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.booleanhasI()"int"booleanhasList()any "list(...)"booleanThis is a placeholder only used in nodes defined inside a function.booleanhasS()"string"booleanhasShape()"shape"boolean"tensor"booleanhasType()"type"Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasS
boolean hasS()"string"
bytes s = 2;- Returns:
- Whether the s field is set.
-
getS
com.google.protobuf.ByteString getS()"string"
bytes s = 2;- Returns:
- The s.
-
hasI
boolean hasI()"int"
int64 i = 3;- Returns:
- Whether the i field is set.
-
getI
long getI()"int"
int64 i = 3;- Returns:
- The i.
-
hasF
boolean hasF()"float"
float f = 4;- Returns:
- Whether the f field is set.
-
getF
float getF()"float"
float f = 4;- Returns:
- The f.
-
hasB
boolean hasB()"bool"
bool b = 5;- Returns:
- Whether the b field is set.
-
getB
boolean getB()"bool"
bool b = 5;- Returns:
- The b.
-
hasType
boolean hasType()"type"
.tensorflow.DataType type = 6;- Returns:
- Whether the type field is set.
-
getTypeValue
int getTypeValue()"type"
.tensorflow.DataType type = 6;- Returns:
- The enum numeric value on the wire for type.
-
getType
DataType getType()"type"
.tensorflow.DataType type = 6;- Returns:
- The type.
-
hasShape
boolean hasShape()"shape"
.tensorflow.TensorShapeProto shape = 7;- Returns:
- Whether the shape field is set.
-
getShape
TensorShapeProto getShape()"shape"
.tensorflow.TensorShapeProto shape = 7;- Returns:
- The shape.
-
getShapeOrBuilder
TensorShapeProtoOrBuilder getShapeOrBuilder()"shape"
.tensorflow.TensorShapeProto shape = 7; -
hasTensor
boolean hasTensor()"tensor"
.tensorflow.TensorProto tensor = 8;- Returns:
- Whether the tensor field is set.
-
getTensor
TensorProto getTensor()"tensor"
.tensorflow.TensorProto tensor = 8;- Returns:
- The tensor.
-
getTensorOrBuilder
TensorProtoOrBuilder getTensorOrBuilder()"tensor"
.tensorflow.TensorProto tensor = 8; -
hasList
boolean hasList()any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Returns:
- Whether the list field is set.
-
getList
AttrValue.ListValue getList()any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Returns:
- The list.
-
getListOrBuilder
AttrValue.ListValueOrBuilder getListOrBuilder()any "list(...)"
.tensorflow.AttrValue.ListValue list = 1; -
hasFunc
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;- Returns:
- Whether the func field is set.
-
getFunc
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;- Returns:
- The func.
-
getFuncOrBuilder
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; -
hasPlaceholder
boolean hasPlaceholder()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;- Returns:
- Whether the placeholder field is set.
-
getPlaceholder
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;- Returns:
- The placeholder.
-
getPlaceholderBytes
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;- Returns:
- The bytes for placeholder.
-
getValueCase
AttrValue.ValueCase getValueCase()
-