Package org.tensorflow.distruntime
Class RunGraphRequest
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- org.tensorflow.distruntime.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 typetensorflow.RunGraphRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRunGraphRequest.BuilderProtobuf typetensorflow.RunGraphRequest-
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCREATE_WORKER_SESSION_CALLED_FIELD_NUMBERstatic intEXEC_OPTS_FIELD_NUMBERstatic intGRAPH_HANDLE_FIELD_NUMBERstatic intIS_LAST_PARTIAL_RUN_FIELD_NUMBERstatic intIS_PARTIAL_FIELD_NUMBERstatic intRECV_KEY_FIELD_NUMBERstatic intSEND_FIELD_NUMBERstatic intSESSION_HANDLE_FIELD_NUMBERstatic intSTEP_ID_FIELD_NUMBERstatic intSTORE_ERRORS_IN_RESPONSE_BODY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetCreateWorkerSessionCalled()Set to true if `CreateWorkerSession` was called for `session_handle`.static RunGraphRequestgetDefaultInstance()RunGraphRequestgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()ExecutorOptsgetExecOpts()Options for this step.ExecutorOptsOrBuildergetExecOptsOrBuilder()Options for this step.StringgetGraphHandle()REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.org.nd4j.shade.protobuf.ByteStringgetGraphHandleBytes()REQUIRED: graph_handle must be returned by a RegisterGraph call to the same WorkerService.booleangetIsLastPartialRun()True if this is the last partial run request in a sequence of requests.booleangetIsPartial()True if the RunGraphRequest is a partial run request.org.nd4j.shade.protobuf.Parser<RunGraphRequest>getParserForType()StringgetRecvKey(int index)repeated string recv_key = 4;org.nd4j.shade.protobuf.ByteStringgetRecvKeyBytes(int index)repeated string recv_key = 4;intgetRecvKeyCount()repeated string recv_key = 4;org.nd4j.shade.protobuf.ProtocolStringListgetRecvKeyList()repeated string recv_key = 4;NamedTensorProtogetSend(int index)Runs the graph.intgetSendCount()Runs the graph.List<NamedTensorProto>getSendList()Runs the graph.NamedTensorProtoOrBuildergetSendOrBuilder(int index)Runs the graph.List<? extends NamedTensorProtoOrBuilder>getSendOrBuilderList()Runs the graph.intgetSerializedSize()StringgetSessionHandle()session_handle is the master-generated unique id for this session.org.nd4j.shade.protobuf.ByteStringgetSessionHandleBytes()session_handle is the master-generated unique id for this session.longgetStepId()A unique ID to distinguish different runs of the same graph.booleangetStoreErrorsInResponseBody()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.org.nd4j.shade.protobuf.UnknownFieldSetgetUnknownFields()booleanhasExecOpts()Options for this step.inthashCode()protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RunGraphRequest.BuildernewBuilder()static RunGraphRequest.BuildernewBuilder(RunGraphRequest prototype)RunGraphRequest.BuildernewBuilderForType()protected RunGraphRequest.BuildernewBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RunGraphRequestparseDelimitedFrom(InputStream input)static RunGraphRequestparseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static RunGraphRequestparseFrom(byte[] data)static RunGraphRequestparseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static RunGraphRequestparseFrom(InputStream input)static RunGraphRequestparseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static RunGraphRequestparseFrom(ByteBuffer data)static RunGraphRequestparseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static RunGraphRequestparseFrom(org.nd4j.shade.protobuf.ByteString data)static RunGraphRequestparseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static RunGraphRequestparseFrom(org.nd4j.shade.protobuf.CodedInputStream input)static RunGraphRequestparseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static org.nd4j.shade.protobuf.Parser<RunGraphRequest>parser()RunGraphRequest.BuildertoBuilder()voidwriteTo(org.nd4j.shade.protobuf.CodedOutputStream output)-
Methods inherited from class org.nd4j.shade.protobuf.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, writeStringNoTag
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
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
-
STEP_ID_FIELD_NUMBER
public static final int STEP_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXEC_OPTS_FIELD_NUMBER
public static final int EXEC_OPTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEND_FIELD_NUMBER
public static final int SEND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECV_KEY_FIELD_NUMBER
public static final int RECV_KEY_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:
newInstancein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classorg.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:
internalGetFieldAccessorTablein classorg.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:
getSessionHandlein interfaceRunGraphRequestOrBuilder- 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:
getSessionHandleBytesin interfaceRunGraphRequestOrBuilder- 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:
getCreateWorkerSessionCalledin interfaceRunGraphRequestOrBuilder- 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:
getGraphHandlein interfaceRunGraphRequestOrBuilder- 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:
getGraphHandleBytesin interfaceRunGraphRequestOrBuilder- 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:
getStepIdin interfaceRunGraphRequestOrBuilder- Returns:
- The stepId.
-
hasExecOpts
public boolean hasExecOpts()
Options for this step.
.tensorflow.ExecutorOpts exec_opts = 5;- Specified by:
hasExecOptsin interfaceRunGraphRequestOrBuilder- Returns:
- Whether the execOpts field is set.
-
getExecOpts
public ExecutorOpts getExecOpts()
Options for this step.
.tensorflow.ExecutorOpts exec_opts = 5;- Specified by:
getExecOptsin interfaceRunGraphRequestOrBuilder- Returns:
- The execOpts.
-
getExecOptsOrBuilder
public ExecutorOptsOrBuilder getExecOptsOrBuilder()
Options for this step.
.tensorflow.ExecutorOpts exec_opts = 5;- Specified by:
getExecOptsOrBuilderin interfaceRunGraphRequestOrBuilder
-
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:
getSendListin interfaceRunGraphRequestOrBuilder
-
getSendOrBuilderList
public List<? extends NamedTensorProtoOrBuilder> getSendOrBuilderList()
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:
getSendOrBuilderListin interfaceRunGraphRequestOrBuilder
-
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:
getSendCountin interfaceRunGraphRequestOrBuilder
-
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:
getSendin interfaceRunGraphRequestOrBuilder
-
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:
getSendOrBuilderin interfaceRunGraphRequestOrBuilder
-
getRecvKeyList
public org.nd4j.shade.protobuf.ProtocolStringList getRecvKeyList()
repeated string recv_key = 4;- Specified by:
getRecvKeyListin interfaceRunGraphRequestOrBuilder- Returns:
- A list containing the recvKey.
-
getRecvKeyCount
public int getRecvKeyCount()
repeated string recv_key = 4;- Specified by:
getRecvKeyCountin interfaceRunGraphRequestOrBuilder- Returns:
- The count of recvKey.
-
getRecvKey
public String getRecvKey(int index)
repeated string recv_key = 4;- Specified by:
getRecvKeyin interfaceRunGraphRequestOrBuilder- 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:
getRecvKeyBytesin interfaceRunGraphRequestOrBuilder- 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:
getIsPartialin interfaceRunGraphRequestOrBuilder- 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:
getIsLastPartialRunin interfaceRunGraphRequestOrBuilder- 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:
getStoreErrorsInResponseBodyin interfaceRunGraphRequestOrBuilder- Returns:
- The storeErrorsInResponseBody.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
writeToin classorg.nd4j.shade.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getSerializedSizein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceorg.nd4j.shade.protobuf.Message- Overrides:
equalsin classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceorg.nd4j.shade.protobuf.Message- Overrides:
hashCodein classorg.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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RunGraphRequest parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RunGraphRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RunGraphRequest parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RunGraphRequest parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
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:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static RunGraphRequest.Builder newBuilder()
-
newBuilder
public static RunGraphRequest.Builder newBuilder(RunGraphRequest prototype)
-
toBuilder
public RunGraphRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.Message- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected RunGraphRequest.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RunGraphRequest getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<RunGraphRequest> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<RunGraphRequest> getParserForType()
- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getParserForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RunGraphRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-