public static final class WhileContextDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder> implements WhileContextDefOrBuilder
Protocol buffer representing a WhileContext object.Protobuf type
tensorflow.WhileContextDef
Modifier and Type | Method and Description |
---|---|
WhileContextDef.Builder |
addAllLoopExitNames(Iterable<String> values)
List of names for exit tensors.
|
WhileContextDef.Builder |
addLoopExitNames(String value)
List of names for exit tensors.
|
WhileContextDef.Builder |
addLoopExitNamesBytes(com.google.protobuf.ByteString value)
List of names for exit tensors.
|
WhileContextDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WhileContextDef |
build() |
WhileContextDef |
buildPartial() |
WhileContextDef.Builder |
clear() |
WhileContextDef.Builder |
clearBackProp()
Whether backprop is enabled for this while loop.
|
WhileContextDef.Builder |
clearContextName()
Name of the context.
|
WhileContextDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WhileContextDef.Builder |
clearLoopExitNames()
List of names for exit tensors.
|
WhileContextDef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WhileContextDef.Builder |
clearParallelIterations()
The number of iterations allowed to run in parallel.
|
WhileContextDef.Builder |
clearPivotForBodyName()
Name of the pivot_for_body tensor.
|
WhileContextDef.Builder |
clearPivotForPredName()
Name of the pivot_for_pred tensor.
|
WhileContextDef.Builder |
clearPivotName()
Name of the pivot tensor.
|
WhileContextDef.Builder |
clearSwapMemory()
Whether GPU-CPU memory swap is enabled for this loop.
|
WhileContextDef.Builder |
clearValuesDef()
Values and external values in control flow context.
|
WhileContextDef.Builder |
clone() |
boolean |
getBackProp()
Whether backprop is enabled for this while loop.
|
String |
getContextName()
Name of the context.
|
com.google.protobuf.ByteString |
getContextNameBytes()
Name of the context.
|
WhileContextDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLoopExitNames(int index)
List of names for exit tensors.
|
com.google.protobuf.ByteString |
getLoopExitNamesBytes(int index)
List of names for exit tensors.
|
int |
getLoopExitNamesCount()
List of names for exit tensors.
|
com.google.protobuf.ProtocolStringList |
getLoopExitNamesList()
List of names for exit tensors.
|
int |
getParallelIterations()
The number of iterations allowed to run in parallel.
|
String |
getPivotForBodyName()
Name of the pivot_for_body tensor.
|
com.google.protobuf.ByteString |
getPivotForBodyNameBytes()
Name of the pivot_for_body tensor.
|
String |
getPivotForPredName()
Name of the pivot_for_pred tensor.
|
com.google.protobuf.ByteString |
getPivotForPredNameBytes()
Name of the pivot_for_pred tensor.
|
String |
getPivotName()
Name of the pivot tensor.
|
com.google.protobuf.ByteString |
getPivotNameBytes()
Name of the pivot tensor.
|
boolean |
getSwapMemory()
Whether GPU-CPU memory swap is enabled for this loop.
|
ValuesDef |
getValuesDef()
Values and external values in control flow context.
|
ValuesDef.Builder |
getValuesDefBuilder()
Values and external values in control flow context.
|
ValuesDefOrBuilder |
getValuesDefOrBuilder()
Values and external values in control flow context.
|
boolean |
hasValuesDef()
Values and external values in control flow context.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WhileContextDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WhileContextDef.Builder |
mergeFrom(com.google.protobuf.Message other) |
WhileContextDef.Builder |
mergeFrom(WhileContextDef other) |
WhileContextDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WhileContextDef.Builder |
mergeValuesDef(ValuesDef value)
Values and external values in control flow context.
|
WhileContextDef.Builder |
setBackProp(boolean value)
Whether backprop is enabled for this while loop.
|
WhileContextDef.Builder |
setContextName(String value)
Name of the context.
|
WhileContextDef.Builder |
setContextNameBytes(com.google.protobuf.ByteString value)
Name of the context.
|
WhileContextDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WhileContextDef.Builder |
setLoopExitNames(int index,
String value)
List of names for exit tensors.
|
WhileContextDef.Builder |
setParallelIterations(int value)
The number of iterations allowed to run in parallel.
|
WhileContextDef.Builder |
setPivotForBodyName(String value)
Name of the pivot_for_body tensor.
|
WhileContextDef.Builder |
setPivotForBodyNameBytes(com.google.protobuf.ByteString value)
Name of the pivot_for_body tensor.
|
WhileContextDef.Builder |
setPivotForPredName(String value)
Name of the pivot_for_pred tensor.
|
WhileContextDef.Builder |
setPivotForPredNameBytes(com.google.protobuf.ByteString value)
Name of the pivot_for_pred tensor.
|
WhileContextDef.Builder |
setPivotName(String value)
Name of the pivot tensor.
|
WhileContextDef.Builder |
setPivotNameBytes(com.google.protobuf.ByteString value)
Name of the pivot tensor.
|
WhileContextDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WhileContextDef.Builder |
setSwapMemory(boolean value)
Whether GPU-CPU memory swap is enabled for this loop.
|
WhileContextDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WhileContextDef.Builder |
setValuesDef(ValuesDef.Builder builderForValue)
Values and external values in control flow context.
|
WhileContextDef.Builder |
setValuesDef(ValuesDef value)
Values and external values in control flow context.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public WhileContextDef build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public WhileContextDef buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public WhileContextDef.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder mergeFrom(WhileContextDef other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public WhileContextDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<WhileContextDef.Builder>
IOException
public String getContextName()
Name of the context.
string context_name = 1;
getContextName
in interface WhileContextDefOrBuilder
public com.google.protobuf.ByteString getContextNameBytes()
Name of the context.
string context_name = 1;
getContextNameBytes
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setContextName(String value)
Name of the context.
string context_name = 1;
public WhileContextDef.Builder clearContextName()
Name of the context.
string context_name = 1;
public WhileContextDef.Builder setContextNameBytes(com.google.protobuf.ByteString value)
Name of the context.
string context_name = 1;
public int getParallelIterations()
The number of iterations allowed to run in parallel.
int32 parallel_iterations = 2;
getParallelIterations
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setParallelIterations(int value)
The number of iterations allowed to run in parallel.
int32 parallel_iterations = 2;
public WhileContextDef.Builder clearParallelIterations()
The number of iterations allowed to run in parallel.
int32 parallel_iterations = 2;
public boolean getBackProp()
Whether backprop is enabled for this while loop.
bool back_prop = 3;
getBackProp
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setBackProp(boolean value)
Whether backprop is enabled for this while loop.
bool back_prop = 3;
public WhileContextDef.Builder clearBackProp()
Whether backprop is enabled for this while loop.
bool back_prop = 3;
public boolean getSwapMemory()
Whether GPU-CPU memory swap is enabled for this loop.
bool swap_memory = 4;
getSwapMemory
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setSwapMemory(boolean value)
Whether GPU-CPU memory swap is enabled for this loop.
bool swap_memory = 4;
public WhileContextDef.Builder clearSwapMemory()
Whether GPU-CPU memory swap is enabled for this loop.
bool swap_memory = 4;
public String getPivotName()
Name of the pivot tensor.
string pivot_name = 5;
getPivotName
in interface WhileContextDefOrBuilder
public com.google.protobuf.ByteString getPivotNameBytes()
Name of the pivot tensor.
string pivot_name = 5;
getPivotNameBytes
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setPivotName(String value)
Name of the pivot tensor.
string pivot_name = 5;
public WhileContextDef.Builder clearPivotName()
Name of the pivot tensor.
string pivot_name = 5;
public WhileContextDef.Builder setPivotNameBytes(com.google.protobuf.ByteString value)
Name of the pivot tensor.
string pivot_name = 5;
public String getPivotForPredName()
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;
getPivotForPredName
in interface WhileContextDefOrBuilder
public com.google.protobuf.ByteString getPivotForPredNameBytes()
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;
getPivotForPredNameBytes
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setPivotForPredName(String value)
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;
public WhileContextDef.Builder clearPivotForPredName()
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;
public WhileContextDef.Builder setPivotForPredNameBytes(com.google.protobuf.ByteString value)
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;
public String getPivotForBodyName()
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;
getPivotForBodyName
in interface WhileContextDefOrBuilder
public com.google.protobuf.ByteString getPivotForBodyNameBytes()
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;
getPivotForBodyNameBytes
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setPivotForBodyName(String value)
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;
public WhileContextDef.Builder clearPivotForBodyName()
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;
public WhileContextDef.Builder setPivotForBodyNameBytes(com.google.protobuf.ByteString value)
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;
public com.google.protobuf.ProtocolStringList getLoopExitNamesList()
List of names for exit tensors.
repeated string loop_exit_names = 8;
getLoopExitNamesList
in interface WhileContextDefOrBuilder
public int getLoopExitNamesCount()
List of names for exit tensors.
repeated string loop_exit_names = 8;
getLoopExitNamesCount
in interface WhileContextDefOrBuilder
public String getLoopExitNames(int index)
List of names for exit tensors.
repeated string loop_exit_names = 8;
getLoopExitNames
in interface WhileContextDefOrBuilder
public com.google.protobuf.ByteString getLoopExitNamesBytes(int index)
List of names for exit tensors.
repeated string loop_exit_names = 8;
getLoopExitNamesBytes
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setLoopExitNames(int index, String value)
List of names for exit tensors.
repeated string loop_exit_names = 8;
public WhileContextDef.Builder addLoopExitNames(String value)
List of names for exit tensors.
repeated string loop_exit_names = 8;
public WhileContextDef.Builder addAllLoopExitNames(Iterable<String> values)
List of names for exit tensors.
repeated string loop_exit_names = 8;
public WhileContextDef.Builder clearLoopExitNames()
List of names for exit tensors.
repeated string loop_exit_names = 8;
public WhileContextDef.Builder addLoopExitNamesBytes(com.google.protobuf.ByteString value)
List of names for exit tensors.
repeated string loop_exit_names = 8;
public boolean hasValuesDef()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
hasValuesDef
in interface WhileContextDefOrBuilder
public ValuesDef getValuesDef()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
getValuesDef
in interface WhileContextDefOrBuilder
public WhileContextDef.Builder setValuesDef(ValuesDef value)
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
public WhileContextDef.Builder setValuesDef(ValuesDef.Builder builderForValue)
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
public WhileContextDef.Builder mergeValuesDef(ValuesDef value)
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
public WhileContextDef.Builder clearValuesDef()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
public ValuesDef.Builder getValuesDefBuilder()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
public ValuesDefOrBuilder getValuesDefOrBuilder()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;
getValuesDefOrBuilder
in interface WhileContextDefOrBuilder
public final WhileContextDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
public final WhileContextDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<WhileContextDef.Builder>
Copyright © 2015–2017. All rights reserved.