Class WhileContextDef

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, WhileContextDefOrBuilder

    public final class WhileContextDef
    extends com.google.protobuf.GeneratedMessageV3
    implements WhileContextDefOrBuilder
     Protocol buffer representing a WhileContext object.
     
    Protobuf type org.platanios.tensorflow.proto.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 java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getContextName

        public java.lang.String getContextName()
         Name of the context.
         
        string context_name = 1;
        Specified by:
        getContextName in interface WhileContextDefOrBuilder
        Returns:
        The contextName.
      • getContextNameBytes

        public com.google.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.
      • getPivotName

        public java.lang.String getPivotName()
         Name of the pivot tensor.
         
        string pivot_name = 5;
        Specified by:
        getPivotName in interface WhileContextDefOrBuilder
        Returns:
        The pivotName.
      • getPivotNameBytes

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

        public java.lang.String getPivotForPredName()
         Name of the pivot_for_pred tensor.
         
        string pivot_for_pred_name = 6;
        Specified by:
        getPivotForPredName in interface WhileContextDefOrBuilder
        Returns:
        The pivotForPredName.
      • getPivotForPredNameBytes

        public com.google.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.
      • getPivotForBodyName

        public java.lang.String getPivotForBodyName()
         Name of the pivot_for_body tensor.
         
        string pivot_for_body_name = 7;
        Specified by:
        getPivotForBodyName in interface WhileContextDefOrBuilder
        Returns:
        The pivotForBodyName.
      • getPivotForBodyNameBytes

        public com.google.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 com.google.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 java.lang.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 com.google.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 com.google.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 java.lang.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 com.google.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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.ValuesDef values_def = 9;
        Specified by:
        getValuesDef in interface WhileContextDefOrBuilder
        Returns:
        The valuesDef.
      • getMaximumIterationsName

        public java.lang.String getMaximumIterationsName()
         Optional name of the maximum_iterations tensor.
         
        string maximum_iterations_name = 11;
        Specified by:
        getMaximumIterationsName in interface WhileContextDefOrBuilder
        Returns:
        The maximumIterationsName.
      • getMaximumIterationsNameBytes

        public com.google.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 .org.platanios.tensorflow.proto.ControlFlowContextDef nested_contexts = 12;
        Specified by:
        getNestedContextsCount in interface WhileContextDefOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static WhileContextDef parseFrom​(java.nio.ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(java.nio.ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WhileContextDef parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static WhileContextDef parseFrom​(java.io.InputStream input)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static WhileContextDef parseFrom​(java.io.InputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static WhileContextDef parseDelimitedFrom​(java.io.InputStream input)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static WhileContextDef parseDelimitedFrom​(java.io.InputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static WhileContextDef parseFrom​(com.google.protobuf.CodedInputStream input)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static WhileContextDef parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public WhileContextDef.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public WhileContextDef.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected WhileContextDef.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<WhileContextDef> parser()
      • getParserForType

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

        public WhileContextDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder