Class WhileContextDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.WhileContextDef
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, WhileContextDefOrBuilder
Protocol buffer representing a WhileContext object.Protobuf type
tensorflow.WhileContextDef- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtocol buffer representing a WhileContext object.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether backprop is enabled for this while loop.Name of the context.Name of the context.static WhileContextDefstatic final Descriptors.DescriptorgetLoopEnterNames(int index) List of names for enter tensors.getLoopEnterNamesBytes(int index) List of names for enter tensors.intList of names for enter tensors.List of names for enter tensors.getLoopExitNames(int index) List of names for exit tensors.getLoopExitNamesBytes(int index) List of names for exit tensors.intList of names for exit tensors.List of names for exit tensors.Optional name of the maximum_iterations tensor.Optional name of the maximum_iterations tensor.getNestedContexts(int index) Contexts contained inside this context (e.g. nested whiles).intContexts contained inside this context (e.g. nested whiles).Contexts contained inside this context (e.g. nested whiles).getNestedContextsOrBuilder(int index) Contexts contained inside this context (e.g. nested whiles).List<? extends ControlFlowContextDefOrBuilder> Contexts contained inside this context (e.g. nested whiles).intThe number of iterations allowed to run in parallel.Name of the pivot_for_body tensor.Name of the pivot_for_body tensor.Name of the pivot_for_pred tensor.Name of the pivot_for_pred tensor.Name of the pivot tensor.Name of the pivot tensor.intbooleanWhether GPU-CPU memory swap is enabled for this loop.final UnknownFieldSetValues and external values in control flow context.Values and external values in control flow context.inthashCode()booleanValues and external values in control flow context.protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic WhileContextDef.Builderstatic WhileContextDef.BuildernewBuilder(WhileContextDef prototype) protected WhileContextDef.Builderprotected Objectstatic WhileContextDefparseDelimitedFrom(InputStream input) static WhileContextDefparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static WhileContextDefparseFrom(byte[] data) static WhileContextDefparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static WhileContextDefparseFrom(ByteString data) static WhileContextDefparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static WhileContextDefparseFrom(CodedInputStream input) static WhileContextDefparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static WhileContextDefparseFrom(InputStream input) static WhileContextDefparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static WhileContextDefparseFrom(ByteBuffer data) static WhileContextDefparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<WhileContextDef> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
CONTEXT_NAME_FIELD_NUMBER
public static final int CONTEXT_NAME_FIELD_NUMBER- See Also:
-
PARALLEL_ITERATIONS_FIELD_NUMBER
public static final int PARALLEL_ITERATIONS_FIELD_NUMBER- See Also:
-
BACK_PROP_FIELD_NUMBER
public static final int BACK_PROP_FIELD_NUMBER- See Also:
-
SWAP_MEMORY_FIELD_NUMBER
public static final int SWAP_MEMORY_FIELD_NUMBER- See Also:
-
PIVOT_NAME_FIELD_NUMBER
public static final int PIVOT_NAME_FIELD_NUMBER- See Also:
-
PIVOT_FOR_PRED_NAME_FIELD_NUMBER
public static final int PIVOT_FOR_PRED_NAME_FIELD_NUMBER- See Also:
-
PIVOT_FOR_BODY_NAME_FIELD_NUMBER
public static final int PIVOT_FOR_BODY_NAME_FIELD_NUMBER- See Also:
-
LOOP_EXIT_NAMES_FIELD_NUMBER
public static final int LOOP_EXIT_NAMES_FIELD_NUMBER- See Also:
-
LOOP_ENTER_NAMES_FIELD_NUMBER
public static final int LOOP_ENTER_NAMES_FIELD_NUMBER- See Also:
-
VALUES_DEF_FIELD_NUMBER
public static final int VALUES_DEF_FIELD_NUMBER- See Also:
-
MAXIMUM_ITERATIONS_NAME_FIELD_NUMBER
public static final int MAXIMUM_ITERATIONS_NAME_FIELD_NUMBER- See Also:
-
NESTED_CONTEXTS_FIELD_NUMBER
public static final int NESTED_CONTEXTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getContextName
Name of the context.
string context_name = 1;- Specified by:
getContextNamein interfaceWhileContextDefOrBuilder- Returns:
- The contextName.
-
getContextNameBytes
Name of the context.
string context_name = 1;- Specified by:
getContextNameBytesin interfaceWhileContextDefOrBuilder- Returns:
- The bytes for contextName.
-
getParallelIterations
public int getParallelIterations()The number of iterations allowed to run in parallel.
int32 parallel_iterations = 2;- Specified by:
getParallelIterationsin interfaceWhileContextDefOrBuilder- Returns:
- The parallelIterations.
-
getBackProp
public boolean getBackProp()Whether backprop is enabled for this while loop.
bool back_prop = 3;- Specified by:
getBackPropin interfaceWhileContextDefOrBuilder- Returns:
- The backProp.
-
getSwapMemory
public boolean getSwapMemory()Whether GPU-CPU memory swap is enabled for this loop.
bool swap_memory = 4;- Specified by:
getSwapMemoryin interfaceWhileContextDefOrBuilder- Returns:
- The swapMemory.
-
getPivotName
Name of the pivot tensor.
string pivot_name = 5;- Specified by:
getPivotNamein interfaceWhileContextDefOrBuilder- Returns:
- The pivotName.
-
getPivotNameBytes
Name of the pivot tensor.
string pivot_name = 5;- Specified by:
getPivotNameBytesin interfaceWhileContextDefOrBuilder- Returns:
- The bytes for pivotName.
-
getPivotForPredName
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;- Specified by:
getPivotForPredNamein interfaceWhileContextDefOrBuilder- Returns:
- The pivotForPredName.
-
getPivotForPredNameBytes
Name of the pivot_for_pred tensor.
string pivot_for_pred_name = 6;- Specified by:
getPivotForPredNameBytesin interfaceWhileContextDefOrBuilder- Returns:
- The bytes for pivotForPredName.
-
getPivotForBodyName
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;- Specified by:
getPivotForBodyNamein interfaceWhileContextDefOrBuilder- Returns:
- The pivotForBodyName.
-
getPivotForBodyNameBytes
Name of the pivot_for_body tensor.
string pivot_for_body_name = 7;- Specified by:
getPivotForBodyNameBytesin interfaceWhileContextDefOrBuilder- Returns:
- The bytes for pivotForBodyName.
-
getLoopExitNamesList
List of names for exit tensors.
repeated string loop_exit_names = 8;- Specified by:
getLoopExitNamesListin interfaceWhileContextDefOrBuilder- Returns:
- A list containing the loopExitNames.
-
getLoopExitNamesCount
public int getLoopExitNamesCount()List of names for exit tensors.
repeated string loop_exit_names = 8;- Specified by:
getLoopExitNamesCountin interfaceWhileContextDefOrBuilder- Returns:
- The count of loopExitNames.
-
getLoopExitNames
List of names for exit tensors.
repeated string loop_exit_names = 8;- Specified by:
getLoopExitNamesin interfaceWhileContextDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The loopExitNames at the given index.
-
getLoopExitNamesBytes
List of names for exit tensors.
repeated string loop_exit_names = 8;- Specified by:
getLoopExitNamesBytesin interfaceWhileContextDefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the loopExitNames at the given index.
-
getLoopEnterNamesList
List of names for enter tensors.
repeated string loop_enter_names = 10;- Specified by:
getLoopEnterNamesListin interfaceWhileContextDefOrBuilder- Returns:
- A list containing the loopEnterNames.
-
getLoopEnterNamesCount
public int getLoopEnterNamesCount()List of names for enter tensors.
repeated string loop_enter_names = 10;- Specified by:
getLoopEnterNamesCountin interfaceWhileContextDefOrBuilder- Returns:
- The count of loopEnterNames.
-
getLoopEnterNames
List of names for enter tensors.
repeated string loop_enter_names = 10;- Specified by:
getLoopEnterNamesin interfaceWhileContextDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The loopEnterNames at the given index.
-
getLoopEnterNamesBytes
List of names for enter tensors.
repeated string loop_enter_names = 10;- Specified by:
getLoopEnterNamesBytesin interfaceWhileContextDefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the loopEnterNames at the given index.
-
hasValuesDef
public boolean hasValuesDef()Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;- Specified by:
hasValuesDefin interfaceWhileContextDefOrBuilder- Returns:
- Whether the valuesDef field is set.
-
getValuesDef
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;- Specified by:
getValuesDefin interfaceWhileContextDefOrBuilder- Returns:
- The valuesDef.
-
getValuesDefOrBuilder
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 9;- Specified by:
getValuesDefOrBuilderin interfaceWhileContextDefOrBuilder
-
getMaximumIterationsName
Optional name of the maximum_iterations tensor.
string maximum_iterations_name = 11;- Specified by:
getMaximumIterationsNamein interfaceWhileContextDefOrBuilder- Returns:
- The maximumIterationsName.
-
getMaximumIterationsNameBytes
Optional name of the maximum_iterations tensor.
string maximum_iterations_name = 11;- Specified by:
getMaximumIterationsNameBytesin interfaceWhileContextDefOrBuilder- Returns:
- The bytes for maximumIterationsName.
-
getNestedContextsList
Contexts contained inside this context (e.g. nested whiles).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;- Specified by:
getNestedContextsListin interfaceWhileContextDefOrBuilder
-
getNestedContextsOrBuilderList
Contexts contained inside this context (e.g. nested whiles).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;- Specified by:
getNestedContextsOrBuilderListin interfaceWhileContextDefOrBuilder
-
getNestedContextsCount
public int getNestedContextsCount()Contexts contained inside this context (e.g. nested whiles).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;- Specified by:
getNestedContextsCountin interfaceWhileContextDefOrBuilder
-
getNestedContexts
Contexts contained inside this context (e.g. nested whiles).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;- Specified by:
getNestedContextsin interfaceWhileContextDefOrBuilder
-
getNestedContextsOrBuilder
Contexts contained inside this context (e.g. nested whiles).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;- Specified by:
getNestedContextsOrBuilderin interfaceWhileContextDefOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static WhileContextDef parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static WhileContextDef parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static WhileContextDef parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WhileContextDef parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static WhileContextDef parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WhileContextDef parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-