VariableDefOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
VariableAggregation
|
getAggregation()
Indicates how a distributed variable will be aggregated.
|
abstract
int
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
boolean
|
|
abstract
SaveSliceInfoDef
|
|
abstract
SaveSliceInfoDefOrBuilder
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
VariableSynchronization
|
|
abstract
int
|
|
abstract
boolean
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
boolean
|
|
Public Methods
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;
public
abstract
int
getAggregationValue
()
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;
public
abstract
String
getInitialValueName
()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;
public
abstract
com.google.protobuf.ByteString
getInitialValueNameBytes
()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;
public
abstract
String
getInitializerName
()
Name of the initializer op.
string initializer_name = 2;
public
abstract
com.google.protobuf.ByteString
getInitializerNameBytes
()
Name of the initializer op.
string initializer_name = 2;
public
abstract
boolean
getIsResource
()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;
public
abstract
SaveSliceInfoDef
getSaveSliceInfoDef
()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
public
abstract
String
getSnapshotName
()
Name of the snapshot tensor.
string snapshot_name = 3;
public
abstract
com.google.protobuf.ByteString
getSnapshotNameBytes
()
Name of the snapshot tensor.
string snapshot_name = 3;
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;
public
abstract
int
getSynchronizationValue
()
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;
public
abstract
boolean
getTrainable
()
Whether this variable should be trained.
bool trainable = 7;
public
abstract
String
getVariableName
()
Name of the variable tensor.
string variable_name = 1;
public
abstract
com.google.protobuf.ByteString
getVariableNameBytes
()
Name of the variable tensor.
string variable_name = 1;
public
abstract
boolean
hasSaveSliceInfoDef
()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
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,["# VariableDefOrBuilder\n\npublic interface **VariableDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [VariableDef](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDef), [VariableDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDef.Builder) |----------------------------------------------------------------------------------------------|---------------------------------------------------| | [VariableDef](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDef) | ``` Protocol buffer representing a Variable. ``` | | [VariableDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDef.Builder) | ``` Protocol buffer representing a Variable. ``` | |||\n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [VariableAggregation](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableAggregation) | [getAggregation](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getAggregation())() ``` Indicates how a distributed variable will be aggregated. ``` |\n| abstract int | [getAggregationValue](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getAggregationValue())() ``` Indicates how a distributed variable will be aggregated. ``` |\n| abstract String | [getInitialValueName](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getInitialValueName())() ``` Name of the tensor holding the variable's initial value. ``` |\n| abstract com.google.protobuf.ByteString | [getInitialValueNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getInitialValueNameBytes())() ``` Name of the tensor holding the variable's initial value. ``` |\n| abstract String | [getInitializerName](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getInitializerName())() ``` Name of the initializer op. ``` |\n| abstract com.google.protobuf.ByteString | [getInitializerNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getInitializerNameBytes())() ``` Name of the initializer op. ``` |\n| abstract boolean | [getIsResource](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getIsResource())() ``` Whether to represent this as a ResourceVariable. ``` |\n| abstract [SaveSliceInfoDef](/jvm/api_docs/java/org/tensorflow/proto/framework/SaveSliceInfoDef) | [getSaveSliceInfoDef](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getSaveSliceInfoDef())() ``` Support for saving variables as slices of a larger variable. ``` |\n| abstract [SaveSliceInfoDefOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/SaveSliceInfoDefOrBuilder) | [getSaveSliceInfoDefOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getSaveSliceInfoDefOrBuilder())() ``` Support for saving variables as slices of a larger variable. ``` |\n| abstract String | [getSnapshotName](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getSnapshotName())() ``` Name of the snapshot tensor. ``` |\n| abstract com.google.protobuf.ByteString | [getSnapshotNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getSnapshotNameBytes())() ``` Name of the snapshot tensor. ``` |\n| abstract [VariableSynchronization](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization) | [getSynchronization](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getSynchronization())() ``` Indicates when a distributed variable will be synced. ``` |\n| abstract int | [getSynchronizationValue](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getSynchronizationValue())() ``` Indicates when a distributed variable will be synced. ``` |\n| abstract boolean | [getTrainable](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getTrainable())() ``` Whether this variable should be trained. ``` |\n| abstract String | [getVariableName](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getVariableName())() ``` Name of the variable tensor. ``` |\n| abstract com.google.protobuf.ByteString | [getVariableNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#getVariableNameBytes())() ``` Name of the variable tensor. ``` |\n| abstract boolean | [hasSaveSliceInfoDef](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableDefOrBuilder#hasSaveSliceInfoDef())() ``` Support for saving variables as slices of a larger variable. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract [VariableAggregation](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableAggregation)\n**getAggregation**\n()\n\n\u003cbr /\u003e\n\n```\n Indicates how a distributed variable will be aggregated.\n \n```\n`.tensorflow.VariableAggregation aggregation = 9;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getAggregationValue**\n()\n\n\u003cbr /\u003e\n\n```\n Indicates how a distributed variable will be aggregated.\n \n```\n`.tensorflow.VariableAggregation aggregation = 9;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getInitialValueName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the tensor holding the variable's initial value.\n \n```\n`string initial_value_name = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getInitialValueNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the tensor holding the variable's initial value.\n \n```\n`string initial_value_name = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getInitializerName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the initializer op.\n \n```\n`string initializer_name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getInitializerNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the initializer op.\n \n```\n`string initializer_name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getIsResource**\n()\n\n\u003cbr /\u003e\n\n```\n Whether to represent this as a ResourceVariable.\n \n```\n`bool is_resource = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract [SaveSliceInfoDef](/jvm/api_docs/java/org/tensorflow/proto/framework/SaveSliceInfoDef)\n**getSaveSliceInfoDef**\n()\n\n\u003cbr /\u003e\n\n```\n Support for saving variables as slices of a larger variable.\n \n```\n`.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract [SaveSliceInfoDefOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/SaveSliceInfoDefOrBuilder)\n**getSaveSliceInfoDefOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n Support for saving variables as slices of a larger variable.\n \n```\n`.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getSnapshotName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the snapshot tensor.\n \n```\n`string snapshot_name = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getSnapshotNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the snapshot tensor.\n \n```\n`string snapshot_name = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract [VariableSynchronization](/jvm/api_docs/java/org/tensorflow/proto/framework/VariableSynchronization)\n**getSynchronization**\n()\n\n\u003cbr /\u003e\n\n```\n Indicates when a distributed variable will be synced.\n \n```\n`.tensorflow.VariableSynchronization synchronization = 8;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getSynchronizationValue**\n()\n\n\u003cbr /\u003e\n\n```\n Indicates when a distributed variable will be synced.\n \n```\n`.tensorflow.VariableSynchronization synchronization = 8;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getTrainable**\n()\n\n\u003cbr /\u003e\n\n```\n Whether this variable should be trained.\n \n```\n`bool trainable = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getVariableName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the variable tensor.\n \n```\n`string variable_name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getVariableNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the variable tensor.\n \n```\n`string variable_name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasSaveSliceInfoDef**\n()\n\n\u003cbr /\u003e\n\n```\n Support for saving variables as slices of a larger variable.\n \n```\n`.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;`\n\n\u003cbr /\u003e"]]