Class WhileContextDef

  • All Implemented Interfaces:
    Serializable, org.nd4j.shade.protobuf.Message, org.nd4j.shade.protobuf.MessageLite, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, WhileContextDefOrBuilder

    public final class WhileContextDef
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements WhileContextDefOrBuilder
     Protocol buffer representing a WhileContext object.
     
    Protobuf type tensorflow.WhileContextDef
    See Also:
    Serialized Form
    • Field Detail

      • CONTEXT_NAME_FIELD_NUMBER

        public static final int CONTEXT_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARALLEL_ITERATIONS_FIELD_NUMBER

        public static final int PARALLEL_ITERATIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SWAP_MEMORY_FIELD_NUMBER

        public static final int SWAP_MEMORY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PIVOT_NAME_FIELD_NUMBER

        public static final int PIVOT_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PIVOT_FOR_PRED_NAME_FIELD_NUMBER

        public static final int PIVOT_FOR_PRED_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PIVOT_FOR_BODY_NAME_FIELD_NUMBER

        public static final int PIVOT_FOR_BODY_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOOP_EXIT_NAMES_FIELD_NUMBER

        public static final int LOOP_EXIT_NAMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOOP_ENTER_NAMES_FIELD_NUMBER

        public static final int LOOP_ENTER_NAMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VALUES_DEF_FIELD_NUMBER

        public static final int VALUES_DEF_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAXIMUM_ITERATIONS_NAME_FIELD_NUMBER

        public static final int MAXIMUM_ITERATIONS_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NESTED_CONTEXTS_FIELD_NUMBER

        public static final int NESTED_CONTEXTS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getContextNameBytes

        public org.nd4j.shade.protobuf.ByteString getContextNameBytes()
         Name of the context.
         
        string context_name = 1;
        Specified by:
        getContextNameBytes in interface WhileContextDefOrBuilder
        Returns:
        The bytes for contextName.
      • getParallelIterations

        public int getParallelIterations()
         The number of iterations allowed to run in parallel.
         
        int32 parallel_iterations = 2;
        Specified by:
        getParallelIterations in interface WhileContextDefOrBuilder
        Returns:
        The parallelIterations.
      • getBackProp

        public boolean getBackProp()
         Whether backprop is enabled for this while loop.
         
        bool back_prop = 3;
        Specified by:
        getBackProp in interface WhileContextDefOrBuilder
        Returns:
        The backProp.
      • getSwapMemory

        public boolean getSwapMemory()
         Whether GPU-CPU memory swap is enabled for this loop.
         
        bool swap_memory = 4;
        Specified by:
        getSwapMemory in interface WhileContextDefOrBuilder
        Returns:
        The swapMemory.
      • getPivotNameBytes

        public org.nd4j.shade.protobuf.ByteString getPivotNameBytes()
         Name of the pivot tensor.
         
        string pivot_name = 5;
        Specified by:
        getPivotNameBytes in interface WhileContextDefOrBuilder
        Returns:
        The bytes for pivotName.
      • getPivotForPredNameBytes

        public org.nd4j.shade.protobuf.ByteString getPivotForPredNameBytes()
         Name of the pivot_for_pred tensor.
         
        string pivot_for_pred_name = 6;
        Specified by:
        getPivotForPredNameBytes in interface WhileContextDefOrBuilder
        Returns:
        The bytes for pivotForPredName.
      • getPivotForBodyNameBytes

        public org.nd4j.shade.protobuf.ByteString getPivotForBodyNameBytes()
         Name of the pivot_for_body tensor.
         
        string pivot_for_body_name = 7;
        Specified by:
        getPivotForBodyNameBytes in interface WhileContextDefOrBuilder
        Returns:
        The bytes for pivotForBodyName.
      • getLoopExitNamesList

        public org.nd4j.shade.protobuf.ProtocolStringList getLoopExitNamesList()
         List of names for exit tensors.
         
        repeated string loop_exit_names = 8;
        Specified by:
        getLoopExitNamesList in interface WhileContextDefOrBuilder
        Returns:
        A list containing the loopExitNames.
      • getLoopExitNamesCount

        public int getLoopExitNamesCount()
         List of names for exit tensors.
         
        repeated string loop_exit_names = 8;
        Specified by:
        getLoopExitNamesCount in interface WhileContextDefOrBuilder
        Returns:
        The count of loopExitNames.
      • getLoopExitNames

        public String getLoopExitNames​(int index)
         List of names for exit tensors.
         
        repeated string loop_exit_names = 8;
        Specified by:
        getLoopExitNames in interface WhileContextDefOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The loopExitNames at the given index.
      • getLoopExitNamesBytes

        public org.nd4j.shade.protobuf.ByteString getLoopExitNamesBytes​(int index)
         List of names for exit tensors.
         
        repeated string loop_exit_names = 8;
        Specified by:
        getLoopExitNamesBytes in interface WhileContextDefOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the loopExitNames at the given index.
      • getLoopEnterNamesList

        public org.nd4j.shade.protobuf.ProtocolStringList getLoopEnterNamesList()
         List of names for enter tensors.
         
        repeated string loop_enter_names = 10;
        Specified by:
        getLoopEnterNamesList in interface WhileContextDefOrBuilder
        Returns:
        A list containing the loopEnterNames.
      • getLoopEnterNamesCount

        public int getLoopEnterNamesCount()
         List of names for enter tensors.
         
        repeated string loop_enter_names = 10;
        Specified by:
        getLoopEnterNamesCount in interface WhileContextDefOrBuilder
        Returns:
        The count of loopEnterNames.
      • getLoopEnterNames

        public String getLoopEnterNames​(int index)
         List of names for enter tensors.
         
        repeated string loop_enter_names = 10;
        Specified by:
        getLoopEnterNames in interface WhileContextDefOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The loopEnterNames at the given index.
      • getLoopEnterNamesBytes

        public org.nd4j.shade.protobuf.ByteString getLoopEnterNamesBytes​(int index)
         List of names for enter tensors.
         
        repeated string loop_enter_names = 10;
        Specified by:
        getLoopEnterNamesBytes in interface WhileContextDefOrBuilder
        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:
        hasValuesDef in interface WhileContextDefOrBuilder
        Returns:
        Whether the valuesDef field is set.
      • getValuesDef

        public ValuesDef getValuesDef()
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 9;
        Specified by:
        getValuesDef in interface WhileContextDefOrBuilder
        Returns:
        The valuesDef.
      • getMaximumIterationsNameBytes

        public org.nd4j.shade.protobuf.ByteString getMaximumIterationsNameBytes()
         Optional name of the maximum_iterations tensor.
         
        string maximum_iterations_name = 11;
        Specified by:
        getMaximumIterationsNameBytes in interface WhileContextDefOrBuilder
        Returns:
        The bytes for maximumIterationsName.
      • getNestedContextsCount

        public int getNestedContextsCount()
         Contexts contained inside this context (e.g. nested whiles).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
        Specified by:
        getNestedContextsCount in interface WhileContextDefOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(org.nd4j.shade.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        writeTo in class org.nd4j.shade.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.nd4j.shade.protobuf.Message
        Overrides:
        equals in class org.nd4j.shade.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.nd4j.shade.protobuf.Message
        Overrides:
        hashCode in class org.nd4j.shade.protobuf.AbstractMessage
      • parseFrom

        public static WhileContextDef parseFrom​(ByteBuffer data)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(ByteBuffer data,
                                                org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(org.nd4j.shade.protobuf.ByteString data)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(org.nd4j.shade.protobuf.ByteString data,
                                                org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(byte[] data)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(byte[] data,
                                                org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public WhileContextDef.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.MessageLite
      • toBuilder

        public WhileContextDef.Builder toBuilder()
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.Message
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.MessageLite
      • newBuilderForType

        protected WhileContextDef.Builder newBuilderForType​(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • parser

        public static org.nd4j.shade.protobuf.Parser<WhileContextDef> parser()
      • getParserForType

        public org.nd4j.shade.protobuf.Parser<WhileContextDef> getParserForType()
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public WhileContextDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder