public final enum
VariableSynchronization
Indicates when a distributed variable will be synced.
tensorflow.VariableSynchronization
Constants
int | VARIABLE_SYNCHRONIZATION_AUTO_VALUE | `AUTO`: Indicates that the synchronization will be determined by the current `DistributionStrategy` (eg. |
int | VARIABLE_SYNCHRONIZATION_NONE_VALUE | `NONE`: Indicates that there will only be one copy of the variable, so there is no need to sync. |
int | VARIABLE_SYNCHRONIZATION_ON_READ_VALUE | `ON_READ`: Indicates that the variable will be aggregated across devices when it is read (eg. |
int | VARIABLE_SYNCHRONIZATION_ON_WRITE_VALUE | `ON_WRITE`: Indicates that the variable will be updated across devices every time it is written. |
Inherited Methods
final int |
compareTo(VariableSynchronization arg0)
|
int |
compareTo(Object arg0)
|
final boolean |
equals(Object arg0)
|
final Class<VariableSynchronization> |
getDeclaringClass()
|
final int |
hashCode()
|
final String |
name()
|
final int |
ordinal()
|
String |
toString()
|
static <T extends Enum<T>> T |
valueOf(Class<T> arg0, String arg1)
|
boolean |
equals(Object arg0)
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
abstract int |
compareTo(VariableSynchronization arg0)
|
Enum Values
public static final VariableSynchronization UNRECOGNIZED
public static final VariableSynchronization VARIABLE_SYNCHRONIZATION_AUTO
`AUTO`: Indicates that the synchronization will be determined by the current `DistributionStrategy` (eg. With `MirroredStrategy` this would be `ON_WRITE`).
VARIABLE_SYNCHRONIZATION_AUTO = 0;
public static final VariableSynchronization VARIABLE_SYNCHRONIZATION_NONE
`NONE`: Indicates that there will only be one copy of the variable, so there is no need to sync.
VARIABLE_SYNCHRONIZATION_NONE = 1;
public static final VariableSynchronization VARIABLE_SYNCHRONIZATION_ON_READ
`ON_READ`: Indicates that the variable will be aggregated across devices when it is read (eg. when checkpointing or when evaluating an op that uses the variable).
VARIABLE_SYNCHRONIZATION_ON_READ = 3;
public static final VariableSynchronization VARIABLE_SYNCHRONIZATION_ON_WRITE
`ON_WRITE`: Indicates that the variable will be updated across devices every time it is written.
VARIABLE_SYNCHRONIZATION_ON_WRITE = 2;
Constants
public static final int VARIABLE_SYNCHRONIZATION_AUTO_VALUE
`AUTO`: Indicates that the synchronization will be determined by the current `DistributionStrategy` (eg. With `MirroredStrategy` this would be `ON_WRITE`).
VARIABLE_SYNCHRONIZATION_AUTO = 0;
Constant Value:
0
public static final int VARIABLE_SYNCHRONIZATION_NONE_VALUE
`NONE`: Indicates that there will only be one copy of the variable, so there is no need to sync.
VARIABLE_SYNCHRONIZATION_NONE = 1;
Constant Value:
1
public static final int VARIABLE_SYNCHRONIZATION_ON_READ_VALUE
`ON_READ`: Indicates that the variable will be aggregated across devices when it is read (eg. when checkpointing or when evaluating an op that uses the variable).
VARIABLE_SYNCHRONIZATION_ON_READ = 3;
Constant Value:
3
public static final int VARIABLE_SYNCHRONIZATION_ON_WRITE_VALUE
`ON_WRITE`: Indicates that the variable will be updated across devices every time it is written.
VARIABLE_SYNCHRONIZATION_ON_WRITE = 2;
Constant Value:
2