VariableSynchronization
Stay organized with collections
Save and categorize content based on your preferences.
Indicates when a distributed variable will be synced.
Protobuf enum
tensorflow.VariableSynchronization
Inherited Methods
From class
java.lang.Enum
final
int
|
|
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)
|
From class
java.lang.Object
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()
|
From interface
java.lang.Comparable
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# VariableSynchronization\n\npublic final enum **VariableSynchronization** \n\u003cbr /\u003e\n\n```\n Indicates when a distributed variable will be synced.\n \n```\nProtobuf enum `tensorflow.VariableSynchronization`\n\n\u003cbr /\u003e\n\n### Constants\n\n|-----|--------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| int | [VARIABLE_SYNCHRONIZATION_AUTO_VALUE](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization#VARIABLE_SYNCHRONIZATION_AUTO_VALUE) | ``` `AUTO`: Indicates that the synchronization will be determined by the current `DistributionStrategy` (eg. ``` |\n| int | [VARIABLE_SYNCHRONIZATION_NONE_VALUE](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization#VARIABLE_SYNCHRONIZATION_NONE_VALUE) | ``` `NONE`: Indicates that there will only be one copy of the variable, so there is no need to sync. ``` |\n| int | [VARIABLE_SYNCHRONIZATION_ON_READ_VALUE](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization#VARIABLE_SYNCHRONIZATION_ON_READ_VALUE) | ``` `ON_READ`: Indicates that the variable will be aggregated across devices when it is read (eg. ``` |\n| int | [VARIABLE_SYNCHRONIZATION_ON_WRITE_VALUE](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization#VARIABLE_SYNCHRONIZATION_ON_WRITE_VALUE) | ``` `ON_WRITE`: Indicates that the variable will be updated across devices every time it is written. ``` |\n\n### Inherited Methods\n\nFrom class java.lang.Enum \n\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| final int | compareTo([VariableSynchronization](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization) arg0) |\n| int | compareTo(Object arg0) |\n| final boolean | equals(Object arg0) |\n| final Class\\\u003c[VariableSynchronization](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization)\\\u003e | getDeclaringClass() |\n| final int | hashCode() |\n| final String | name() |\n| final int | ordinal() |\n| String | toString() |\n| static \\\u003cT extends Enum\\\u003cT\\\u003e\\\u003e T | valueOf(Class\\\u003cT\\\u003e arg0, String arg1) |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface java.lang.Comparable \n\n|--------------|----------------------------------------------------------------------------------------------------------------------|\n| abstract int | compareTo([VariableSynchronization](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization) arg0) |\n\nEnum Values\n-----------\n\n#### public static final VariableSynchronization\n**UNRECOGNIZED**\n\n\u003cbr /\u003e\n\n#### public static final VariableSynchronization\n**VARIABLE_SYNCHRONIZATION_AUTO**\n\n\u003cbr /\u003e\n\n```\n `AUTO`: Indicates that the synchronization will be determined by the\n current `DistributionStrategy` (eg. With `MirroredStrategy` this would be\n `ON_WRITE`).\n \n```\n`VARIABLE_SYNCHRONIZATION_AUTO = 0;`\n\n\u003cbr /\u003e\n\n#### public static final VariableSynchronization\n**VARIABLE_SYNCHRONIZATION_NONE**\n\n\u003cbr /\u003e\n\n```\n `NONE`: Indicates that there will only be one copy of the variable, so\n there is no need to sync.\n \n```\n`VARIABLE_SYNCHRONIZATION_NONE = 1;`\n\n\u003cbr /\u003e\n\n#### public static final VariableSynchronization\n**VARIABLE_SYNCHRONIZATION_ON_READ**\n\n\u003cbr /\u003e\n\n```\n `ON_READ`: Indicates that the variable will be aggregated across devices\n when it is read (eg. when checkpointing or when evaluating an op that uses\n the variable).\n \n```\n`VARIABLE_SYNCHRONIZATION_ON_READ = 3;`\n\n\u003cbr /\u003e\n\n#### public static final VariableSynchronization\n**VARIABLE_SYNCHRONIZATION_ON_WRITE**\n\n\u003cbr /\u003e\n\n```\n `ON_WRITE`: Indicates that the variable will be updated across devices\n every time it is written.\n \n```\n`VARIABLE_SYNCHRONIZATION_ON_WRITE = 2;`\n\n\u003cbr /\u003e\n\nConstants\n---------\n\n#### public static final int\n**VARIABLE_SYNCHRONIZATION_AUTO_VALUE**\n\n\u003cbr /\u003e\n\n```\n `AUTO`: Indicates that the synchronization will be determined by the\n current `DistributionStrategy` (eg. With `MirroredStrategy` this would be\n `ON_WRITE`).\n \n```\n`VARIABLE_SYNCHRONIZATION_AUTO = 0;`\n\n\u003cbr /\u003e\n\nConstant Value: 0 \n\n#### public static final int\n**VARIABLE_SYNCHRONIZATION_NONE_VALUE**\n\n\u003cbr /\u003e\n\n```\n `NONE`: Indicates that there will only be one copy of the variable, so\n there is no need to sync.\n \n```\n`VARIABLE_SYNCHRONIZATION_NONE = 1;`\n\n\u003cbr /\u003e\n\nConstant Value: 1 \n\n#### public static final int\n**VARIABLE_SYNCHRONIZATION_ON_READ_VALUE**\n\n\u003cbr /\u003e\n\n```\n `ON_READ`: Indicates that the variable will be aggregated across devices\n when it is read (eg. when checkpointing or when evaluating an op that uses\n the variable).\n \n```\n`VARIABLE_SYNCHRONIZATION_ON_READ = 3;`\n\n\u003cbr /\u003e\n\nConstant Value: 3 \n\n#### public static final int\n**VARIABLE_SYNCHRONIZATION_ON_WRITE_VALUE**\n\n\u003cbr /\u003e\n\n```\n `ON_WRITE`: Indicates that the variable will be updated across devices\n every time it is written.\n \n```\n`VARIABLE_SYNCHRONIZATION_ON_WRITE = 2;`\n\n\u003cbr /\u003e\n\nConstant Value: 2"]]