Class ResetRequest

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

    public final class ResetRequest
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements ResetRequestOrBuilder
     Reset() allows misbehaving or slow sessions to be aborted and closed, and
     causes their resources eventually to be released.  Reset() does not wait
     for the computations in old sessions to cease; it merely starts the
     process of tearing them down.  However, if a new session is started after
     a Reset(), the new session is isolated from changes that old sessions
     (started prior to the Reset()) may continue to make to resources, provided
     all those resources are in containers listed in "containers".
     Old sessions may continue to have side-effects on resources not in
     containers listed in "containers", and thus may affect future
     sessions' results in ways that are hard to predict.  Thus, if well-defined
     behavior is desired, is it recommended that all containers be listed in
     "containers".  Similarly, if a device_filter is specified, results may be
     hard to predict.
     
    Protobuf type tensorflow.ResetRequest
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ResetRequest.Builder
      Reset() allows misbehaving or slow sessions to be aborted and closed, and causes their resources eventually to be released.
      • Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3

        org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.AbstractMessageLite

        org.nd4j.shade.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONTAINER_FIELD_NUMBER  
      static int DEVICE_FILTERS_FIELD_NUMBER  
      • Fields inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3

        alwaysUseFieldBuilders, unknownFields
      • Fields inherited from class org.nd4j.shade.protobuf.AbstractMessage

        memoizedSize
      • Fields inherited from class org.nd4j.shade.protobuf.AbstractMessageLite

        memoizedHashCode
    • Field Detail

      • DEVICE_FILTERS_FIELD_NUMBER

        public static final int DEVICE_FILTERS_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
      • getContainerList

        public org.nd4j.shade.protobuf.ProtocolStringList getContainerList()
         A list of container names, which may be empty.
         If 'container' is not empty, releases resoures in the given
         containers in all devices.
         If 'container' is empty, releases resources in the default
         container in all devices.
         
        repeated string container = 1;
        Specified by:
        getContainerList in interface ResetRequestOrBuilder
        Returns:
        A list containing the container.
      • getContainerCount

        public int getContainerCount()
         A list of container names, which may be empty.
         If 'container' is not empty, releases resoures in the given
         containers in all devices.
         If 'container' is empty, releases resources in the default
         container in all devices.
         
        repeated string container = 1;
        Specified by:
        getContainerCount in interface ResetRequestOrBuilder
        Returns:
        The count of container.
      • getContainer

        public String getContainer​(int index)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resoures in the given
         containers in all devices.
         If 'container' is empty, releases resources in the default
         container in all devices.
         
        repeated string container = 1;
        Specified by:
        getContainer in interface ResetRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The container at the given index.
      • getContainerBytes

        public org.nd4j.shade.protobuf.ByteString getContainerBytes​(int index)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resoures in the given
         containers in all devices.
         If 'container' is empty, releases resources in the default
         container in all devices.
         
        repeated string container = 1;
        Specified by:
        getContainerBytes in interface ResetRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the container at the given index.
      • getDeviceFiltersList

        public org.nd4j.shade.protobuf.ProtocolStringList getDeviceFiltersList()
         When any filters are present, only devices that match the filters
         will be reset. Each filter can be partially specified,
         e.g. "/job:ps" "/job:worker/replica:3", etc.
         
        repeated string device_filters = 2;
        Specified by:
        getDeviceFiltersList in interface ResetRequestOrBuilder
        Returns:
        A list containing the deviceFilters.
      • getDeviceFiltersCount

        public int getDeviceFiltersCount()
         When any filters are present, only devices that match the filters
         will be reset. Each filter can be partially specified,
         e.g. "/job:ps" "/job:worker/replica:3", etc.
         
        repeated string device_filters = 2;
        Specified by:
        getDeviceFiltersCount in interface ResetRequestOrBuilder
        Returns:
        The count of deviceFilters.
      • getDeviceFilters

        public String getDeviceFilters​(int index)
         When any filters are present, only devices that match the filters
         will be reset. Each filter can be partially specified,
         e.g. "/job:ps" "/job:worker/replica:3", etc.
         
        repeated string device_filters = 2;
        Specified by:
        getDeviceFilters in interface ResetRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The deviceFilters at the given index.
      • getDeviceFiltersBytes

        public org.nd4j.shade.protobuf.ByteString getDeviceFiltersBytes​(int index)
         When any filters are present, only devices that match the filters
         will be reset. Each filter can be partially specified,
         e.g. "/job:ps" "/job:worker/replica:3", etc.
         
        repeated string device_filters = 2;
        Specified by:
        getDeviceFiltersBytes in interface ResetRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the deviceFilters at the given index.
      • 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 ResetRequest parseFrom​(ByteBuffer data)
                                      throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static ResetRequest 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 ResetRequest parseFrom​(byte[] data)
                                      throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static ResetRequest getDefaultInstance()
      • parser

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

        public org.nd4j.shade.protobuf.Parser<ResetRequest> 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 ResetRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder