public enum VariableSynchronization extends Enum<VariableSynchronization> implements com.google.protobuf.ProtocolMessageEnum
Indicates when a distributed variable will be synced.Protobuf enum
tensorflow.VariableSynchronization
Enum Constant and Description |
---|
UNRECOGNIZED |
VARIABLE_SYNCHRONIZATION_AUTO
`AUTO`: Indicates that the synchronization will be determined by the
current `DistributionStrategy` (eg.
|
VARIABLE_SYNCHRONIZATION_NONE
`NONE`: Indicates that there will only be one copy of the variable, so
there is no need to sync.
|
VARIABLE_SYNCHRONIZATION_ON_READ
`ON_READ`: Indicates that the variable will be aggregated across devices
when it is read (eg.
|
VARIABLE_SYNCHRONIZATION_ON_WRITE
`ON_WRITE`: Indicates that the variable will be updated across devices
every time it is written.
|
Modifier and Type | Field and Description |
---|---|
static int |
VARIABLE_SYNCHRONIZATION_AUTO_VALUE
`AUTO`: Indicates that the synchronization will be determined by the
current `DistributionStrategy` (eg.
|
static int |
VARIABLE_SYNCHRONIZATION_NONE_VALUE
`NONE`: Indicates that there will only be one copy of the variable, so
there is no need to sync.
|
static int |
VARIABLE_SYNCHRONIZATION_ON_READ_VALUE
`ON_READ`: Indicates that the variable will be aggregated across devices
when it is read (eg.
|
static int |
VARIABLE_SYNCHRONIZATION_ON_WRITE_VALUE
`ON_WRITE`: Indicates that the variable will be updated across devices
every time it is written.
|
Modifier and Type | Method and Description |
---|---|
static VariableSynchronization |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<VariableSynchronization> |
internalGetValueMap() |
static VariableSynchronization |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static VariableSynchronization |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static VariableSynchronization |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VariableSynchronization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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_WRITE
`ON_WRITE`: Indicates that the variable will be updated across devices every time it is written.
VARIABLE_SYNCHRONIZATION_ON_WRITE = 2;
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 UNRECOGNIZED
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;
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;
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;
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;
public static VariableSynchronization[] values()
for (VariableSynchronization c : VariableSynchronization.values()) System.out.println(c);
public static VariableSynchronization valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static VariableSynchronization valueOf(int value)
forNumber(int)
instead.public static VariableSynchronization forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<VariableSynchronization> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static VariableSynchronization valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2015–2022. All rights reserved.