Class RunGraphRequest

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

    public final class RunGraphRequest
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements RunGraphRequestOrBuilder
    Protobuf type tensorflow.RunGraphRequest
    See Also:
    Serialized Form
    • Field Detail

      • SESSION_HANDLE_FIELD_NUMBER

        public static final int SESSION_HANDLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_WORKER_SESSION_CALLED_FIELD_NUMBER

        public static final int CREATE_WORKER_SESSION_CALLED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GRAPH_HANDLE_FIELD_NUMBER

        public static final int GRAPH_HANDLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IS_PARTIAL_FIELD_NUMBER

        public static final int IS_PARTIAL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IS_LAST_PARTIAL_RUN_FIELD_NUMBER

        public static final int IS_LAST_PARTIAL_RUN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STORE_ERRORS_IN_RESPONSE_BODY_FIELD_NUMBER

        public static final int STORE_ERRORS_IN_RESPONSE_BODY_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
      • getSessionHandle

        public String getSessionHandle()
         session_handle is the master-generated unique id for this session.
         If session_handle is non-empty, it must be the same as used when
         registering the graph. If it is empty, a single global namespace is used to
         search for the graph_handle.
         
        string session_handle = 8;
        Specified by:
        getSessionHandle in interface RunGraphRequestOrBuilder
        Returns:
        The sessionHandle.
      • getSessionHandleBytes

        public org.nd4j.shade.protobuf.ByteString getSessionHandleBytes()
         session_handle is the master-generated unique id for this session.
         If session_handle is non-empty, it must be the same as used when
         registering the graph. If it is empty, a single global namespace is used to
         search for the graph_handle.
         
        string session_handle = 8;
        Specified by:
        getSessionHandleBytes in interface RunGraphRequestOrBuilder
        Returns:
        The bytes for sessionHandle.
      • getCreateWorkerSessionCalled

        public boolean getCreateWorkerSessionCalled()
         Set to true if `CreateWorkerSession` was called for `session_handle`.
         
        bool create_worker_session_called = 10;
        Specified by:
        getCreateWorkerSessionCalled in interface RunGraphRequestOrBuilder
        Returns:
        The createWorkerSessionCalled.
      • getGraphHandle

        public String getGraphHandle()
         REQUIRED: graph_handle must be returned by a RegisterGraph call
         to the same WorkerService.
         
        string graph_handle = 1;
        Specified by:
        getGraphHandle in interface RunGraphRequestOrBuilder
        Returns:
        The graphHandle.
      • getGraphHandleBytes

        public org.nd4j.shade.protobuf.ByteString getGraphHandleBytes()
         REQUIRED: graph_handle must be returned by a RegisterGraph call
         to the same WorkerService.
         
        string graph_handle = 1;
        Specified by:
        getGraphHandleBytes in interface RunGraphRequestOrBuilder
        Returns:
        The bytes for graphHandle.
      • getStepId

        public long getStepId()
         A unique ID to distinguish different runs of the same graph.
         The master generates a global unique `step_id` to distinguish
         different runs of the graph computation. Subgraphs communicate
         (e.g., send/recv ops) with each other using `step_id` to
         distinguish tensors generated by different runs.
         
        int64 step_id = 2;
        Specified by:
        getStepId in interface RunGraphRequestOrBuilder
        Returns:
        The stepId.
      • hasExecOpts

        public boolean hasExecOpts()
         Options for this step.
         
        .tensorflow.ExecutorOpts exec_opts = 5;
        Specified by:
        hasExecOpts in interface RunGraphRequestOrBuilder
        Returns:
        Whether the execOpts field is set.
      • getSendList

        public List<NamedTensorProto> getSendList()
         Runs the graph.
         Sends the tensors in "send" into the graph before the run and
         fetches the keys into `RunGraphResponse.recv` after the run.
         
        repeated .tensorflow.NamedTensorProto send = 3;
        Specified by:
        getSendList in interface RunGraphRequestOrBuilder
      • getSendCount

        public int getSendCount()
         Runs the graph.
         Sends the tensors in "send" into the graph before the run and
         fetches the keys into `RunGraphResponse.recv` after the run.
         
        repeated .tensorflow.NamedTensorProto send = 3;
        Specified by:
        getSendCount in interface RunGraphRequestOrBuilder
      • getSend

        public NamedTensorProto getSend​(int index)
         Runs the graph.
         Sends the tensors in "send" into the graph before the run and
         fetches the keys into `RunGraphResponse.recv` after the run.
         
        repeated .tensorflow.NamedTensorProto send = 3;
        Specified by:
        getSend in interface RunGraphRequestOrBuilder
      • getSendOrBuilder

        public NamedTensorProtoOrBuilder getSendOrBuilder​(int index)
         Runs the graph.
         Sends the tensors in "send" into the graph before the run and
         fetches the keys into `RunGraphResponse.recv` after the run.
         
        repeated .tensorflow.NamedTensorProto send = 3;
        Specified by:
        getSendOrBuilder in interface RunGraphRequestOrBuilder
      • getRecvKeyList

        public org.nd4j.shade.protobuf.ProtocolStringList getRecvKeyList()
        repeated string recv_key = 4;
        Specified by:
        getRecvKeyList in interface RunGraphRequestOrBuilder
        Returns:
        A list containing the recvKey.
      • getRecvKey

        public String getRecvKey​(int index)
        repeated string recv_key = 4;
        Specified by:
        getRecvKey in interface RunGraphRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The recvKey at the given index.
      • getRecvKeyBytes

        public org.nd4j.shade.protobuf.ByteString getRecvKeyBytes​(int index)
        repeated string recv_key = 4;
        Specified by:
        getRecvKeyBytes in interface RunGraphRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the recvKey at the given index.
      • getIsPartial

        public boolean getIsPartial()
         True if the RunGraphRequest is a partial run request.
         
        bool is_partial = 6;
        Specified by:
        getIsPartial in interface RunGraphRequestOrBuilder
        Returns:
        The isPartial.
      • getIsLastPartialRun

        public boolean getIsLastPartialRun()
         True if this is the last partial run request in a sequence of requests.
         
        bool is_last_partial_run = 7;
        Specified by:
        getIsLastPartialRun in interface RunGraphRequestOrBuilder
        Returns:
        The isLastPartialRun.
      • getStoreErrorsInResponseBody

        public boolean getStoreErrorsInResponseBody()
         If true then some errors, e.g., execution errors that have long
         error messages, may return an OK RunGraphResponse with the actual
         error saved in the status_code/status_error_message fields of the
         response body. This is a workaround since the RPC subsystem may
         truncate long metadata messages.
         
        bool store_errors_in_response_body = 9;
        Specified by:
        getStoreErrorsInResponseBody in interface RunGraphRequestOrBuilder
        Returns:
        The storeErrorsInResponseBody.
      • 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 RunGraphRequest parseFrom​(ByteBuffer data)
                                         throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected RunGraphRequest.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<RunGraphRequest> parser()
      • getParserForType

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