public final class
VariableDef
Protocol buffer representing a Variable.
tensorflow.VariableDef
Nested Classes
class | VariableDef.Builder | Protocol buffer representing a Variable. |
Constants
Public Methods
boolean |
equals(Object obj)
|
VariableAggregation |
getAggregation()
Indicates how a distributed variable will be aggregated. |
int |
getAggregationValue()
Indicates how a distributed variable will be aggregated. |
static VariableDef | |
VariableDef | |
final static com.google.protobuf.Descriptors.Descriptor | |
String |
getInitialValueName()
Name of the tensor holding the variable's initial value. |
com.google.protobuf.ByteString |
getInitialValueNameBytes()
Name of the tensor holding the variable's initial value. |
String |
getInitializerName()
Name of the initializer op. |
com.google.protobuf.ByteString |
getInitializerNameBytes()
Name of the initializer op. |
boolean |
getIsResource()
Whether to represent this as a ResourceVariable. |
|
|
SaveSliceInfoDef |
getSaveSliceInfoDef()
Support for saving variables as slices of a larger variable. |
SaveSliceInfoDefOrBuilder |
getSaveSliceInfoDefOrBuilder()
Support for saving variables as slices of a larger variable. |
int | |
String |
getSnapshotName()
Name of the snapshot tensor. |
com.google.protobuf.ByteString |
getSnapshotNameBytes()
Name of the snapshot tensor. |
VariableSynchronization |
getSynchronization()
Indicates when a distributed variable will be synced. |
int |
getSynchronizationValue()
Indicates when a distributed variable will be synced. |
boolean |
getTrainable()
Whether this variable should be trained. |
final com.google.protobuf.UnknownFieldSet | |
String |
getVariableName()
Name of the variable tensor. |
com.google.protobuf.ByteString |
getVariableNameBytes()
Name of the variable tensor. |
boolean |
hasSaveSliceInfoDef()
Support for saving variables as slices of a larger variable. |
int |
hashCode()
|
final boolean | |
static VariableDef.Builder |
newBuilder(VariableDef prototype)
|
static VariableDef.Builder | |
VariableDef.Builder | |
static VariableDef |
parseDelimitedFrom(InputStream input)
|
static VariableDef |
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static VariableDef |
parseFrom(ByteBuffer data)
|
static VariableDef |
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static VariableDef |
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static VariableDef |
parseFrom(com.google.protobuf.CodedInputStream input)
|
static VariableDef |
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static VariableDef |
parseFrom(com.google.protobuf.ByteString data)
|
static VariableDef |
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static VariableDef |
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static
|
parser()
|
VariableDef.Builder | |
void |
writeTo(com.google.protobuf.CodedOutputStream output)
|
Inherited Methods
Constants
public static final int AGGREGATION_FIELD_NUMBER
Constant Value:
9
public static final int INITIALIZER_NAME_FIELD_NUMBER
Constant Value:
2
public static final int INITIAL_VALUE_NAME_FIELD_NUMBER
Constant Value:
6
public static final int IS_RESOURCE_FIELD_NUMBER
Constant Value:
5
public static final int SAVE_SLICE_INFO_DEF_FIELD_NUMBER
Constant Value:
4
public static final int SNAPSHOT_NAME_FIELD_NUMBER
Constant Value:
3
public static final int SYNCHRONIZATION_FIELD_NUMBER
Constant Value:
8
public static final int TRAINABLE_FIELD_NUMBER
Constant Value:
7
public static final int VARIABLE_NAME_FIELD_NUMBER
Constant Value:
1
Public Methods
public boolean equals (Object obj)
public VariableAggregation getAggregation ()
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;
public int getAggregationValue ()
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public String getInitialValueName ()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;
public com.google.protobuf.ByteString getInitialValueNameBytes ()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;
public String getInitializerName ()
Name of the initializer op.
string initializer_name = 2;
public com.google.protobuf.ByteString getInitializerNameBytes ()
Name of the initializer op.
string initializer_name = 2;
public boolean getIsResource ()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;
public
getParserForType
()
public SaveSliceInfoDef getSaveSliceInfoDef ()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
public SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder ()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
public int getSerializedSize ()
public String getSnapshotName ()
Name of the snapshot tensor.
string snapshot_name = 3;
public com.google.protobuf.ByteString getSnapshotNameBytes ()
Name of the snapshot tensor.
string snapshot_name = 3;
public VariableSynchronization getSynchronization ()
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;
public int getSynchronizationValue ()
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;
public boolean getTrainable ()
Whether this variable should be trained.
bool trainable = 7;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public String getVariableName ()
Name of the variable tensor.
string variable_name = 1;
public com.google.protobuf.ByteString getVariableNameBytes ()
Name of the variable tensor.
string variable_name = 1;
public boolean hasSaveSliceInfoDef ()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
public int hashCode ()
public final boolean isInitialized ()
public static VariableDef parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static VariableDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static VariableDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static VariableDef parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static VariableDef parseFrom (com.google.protobuf.ByteString data)
Throws
InvalidProtocolBufferException |
---|
public static VariableDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static VariableDef 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 |
---|