Class Execution
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.Execution
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, ExecutionOrBuilder
Data relating to the eager execution of an op or a Graph. For a op that generates N output tensors (N >= 0), only one Execution proto will be used to describe the execution event.Protobuf type
tensorflow.Execution- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classData relating to the eager execution of an op or a Graph.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanStack trace of the eager execution.Stack trace of the eager execution.static Executionstatic final Descriptors.DescriptorThe graph that's executed: applicable only to the eager execution of a FuncGraph.The graph that's executed: applicable only to the eager execution of a FuncGraph.longgetInputTensorIds(int index) IDs of the input tensors (if available).intIDs of the input tensors (if available).IDs of the input tensors (if available).intNumber of output tensors.Op type (e.g., "MatMul").Op type (e.g., "MatMul").intgetOutputTensorDeviceIds(int index) Debugged-generated IDs of the devices on which the output tensors reside.intDebugged-generated IDs of the devices on which the output tensors reside.Debugged-generated IDs of the devices on which the output tensors reside.longgetOutputTensorIds(int index) IDs of the output tensors (if availbable).intIDs of the output tensors (if availbable).IDs of the output tensors (if availbable).intType of the tensor value encapsulated in this proto.intType of the tensor value encapsulated in this proto.getTensorProtos(int index) Output Tensor values in the type described by `tensor_value_type`.intOutput Tensor values in the type described by `tensor_value_type`.Output Tensor values in the type described by `tensor_value_type`.getTensorProtosOrBuilder(int index) Output Tensor values in the type described by `tensor_value_type`.List<? extends TensorProtoOrBuilder> Output Tensor values in the type described by `tensor_value_type`.final UnknownFieldSetbooleanStack trace of the eager execution.inthashCode()protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Execution.Builderstatic Execution.BuildernewBuilder(Execution prototype) protected Execution.Builderprotected Objectstatic ExecutionparseDelimitedFrom(InputStream input) static ExecutionparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static ExecutionparseFrom(byte[] data) static ExecutionparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static ExecutionparseFrom(ByteString data) static ExecutionparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static ExecutionparseFrom(CodedInputStream input) static ExecutionparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static ExecutionparseFrom(InputStream input) static ExecutionparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static ExecutionparseFrom(ByteBuffer data) static ExecutionparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) parser()voidwriteTo(CodedOutputStream output) Methods inherited from class 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, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
OP_TYPE_FIELD_NUMBER
public static final int OP_TYPE_FIELD_NUMBER- See Also:
-
NUM_OUTPUTS_FIELD_NUMBER
public static final int NUM_OUTPUTS_FIELD_NUMBER- See Also:
-
GRAPH_ID_FIELD_NUMBER
public static final int GRAPH_ID_FIELD_NUMBER- See Also:
-
INPUT_TENSOR_IDS_FIELD_NUMBER
public static final int INPUT_TENSOR_IDS_FIELD_NUMBER- See Also:
-
OUTPUT_TENSOR_IDS_FIELD_NUMBER
public static final int OUTPUT_TENSOR_IDS_FIELD_NUMBER- See Also:
-
TENSOR_DEBUG_MODE_FIELD_NUMBER
public static final int TENSOR_DEBUG_MODE_FIELD_NUMBER- See Also:
-
TENSOR_PROTOS_FIELD_NUMBER
public static final int TENSOR_PROTOS_FIELD_NUMBER- See Also:
-
CODE_LOCATION_FIELD_NUMBER
public static final int CODE_LOCATION_FIELD_NUMBER- See Also:
-
OUTPUT_TENSOR_DEVICE_IDS_FIELD_NUMBER
public static final int OUTPUT_TENSOR_DEVICE_IDS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getOpType
Op type (e.g., "MatMul"). In the case of a Graph, this is the name of the Graph.
string op_type = 1;- Specified by:
getOpTypein interfaceExecutionOrBuilder- Returns:
- The opType.
-
getOpTypeBytes
Op type (e.g., "MatMul"). In the case of a Graph, this is the name of the Graph.
string op_type = 1;- Specified by:
getOpTypeBytesin interfaceExecutionOrBuilder- Returns:
- The bytes for opType.
-
getNumOutputs
public int getNumOutputs()Number of output tensors.
int32 num_outputs = 2;- Specified by:
getNumOutputsin interfaceExecutionOrBuilder- Returns:
- The numOutputs.
-
getGraphId
The graph that's executed: applicable only to the eager execution of a FuncGraph.
string graph_id = 3;- Specified by:
getGraphIdin interfaceExecutionOrBuilder- Returns:
- The graphId.
-
getGraphIdBytes
The graph that's executed: applicable only to the eager execution of a FuncGraph.
string graph_id = 3;- Specified by:
getGraphIdBytesin interfaceExecutionOrBuilder- Returns:
- The bytes for graphId.
-
getInputTensorIdsList
IDs of the input tensors (if available).
repeated int64 input_tensor_ids = 4;- Specified by:
getInputTensorIdsListin interfaceExecutionOrBuilder- Returns:
- A list containing the inputTensorIds.
-
getInputTensorIdsCount
public int getInputTensorIdsCount()IDs of the input tensors (if available).
repeated int64 input_tensor_ids = 4;- Specified by:
getInputTensorIdsCountin interfaceExecutionOrBuilder- Returns:
- The count of inputTensorIds.
-
getInputTensorIds
public long getInputTensorIds(int index) IDs of the input tensors (if available).
repeated int64 input_tensor_ids = 4;- Specified by:
getInputTensorIdsin interfaceExecutionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputTensorIds at the given index.
-
getOutputTensorIdsList
IDs of the output tensors (if availbable). If specified, must have the same length as tensor_protos.
repeated int64 output_tensor_ids = 5;- Specified by:
getOutputTensorIdsListin interfaceExecutionOrBuilder- Returns:
- A list containing the outputTensorIds.
-
getOutputTensorIdsCount
public int getOutputTensorIdsCount()IDs of the output tensors (if availbable). If specified, must have the same length as tensor_protos.
repeated int64 output_tensor_ids = 5;- Specified by:
getOutputTensorIdsCountin interfaceExecutionOrBuilder- Returns:
- The count of outputTensorIds.
-
getOutputTensorIds
public long getOutputTensorIds(int index) IDs of the output tensors (if availbable). If specified, must have the same length as tensor_protos.
repeated int64 output_tensor_ids = 5;- Specified by:
getOutputTensorIdsin interfaceExecutionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputTensorIds at the given index.
-
getTensorDebugModeValue
public int getTensorDebugModeValue()Type of the tensor value encapsulated in this proto.
.tensorflow.TensorDebugMode tensor_debug_mode = 6;- Specified by:
getTensorDebugModeValuein interfaceExecutionOrBuilder- Returns:
- The enum numeric value on the wire for tensorDebugMode.
-
getTensorDebugMode
Type of the tensor value encapsulated in this proto.
.tensorflow.TensorDebugMode tensor_debug_mode = 6;- Specified by:
getTensorDebugModein interfaceExecutionOrBuilder- Returns:
- The tensorDebugMode.
-
getTensorProtosList
Output Tensor values in the type described by `tensor_value_type`. The length of this should match `num_outputs`.
repeated .tensorflow.TensorProto tensor_protos = 7;- Specified by:
getTensorProtosListin interfaceExecutionOrBuilder
-
getTensorProtosOrBuilderList
Output Tensor values in the type described by `tensor_value_type`. The length of this should match `num_outputs`.
repeated .tensorflow.TensorProto tensor_protos = 7;- Specified by:
getTensorProtosOrBuilderListin interfaceExecutionOrBuilder
-
getTensorProtosCount
public int getTensorProtosCount()Output Tensor values in the type described by `tensor_value_type`. The length of this should match `num_outputs`.
repeated .tensorflow.TensorProto tensor_protos = 7;- Specified by:
getTensorProtosCountin interfaceExecutionOrBuilder
-
getTensorProtos
Output Tensor values in the type described by `tensor_value_type`. The length of this should match `num_outputs`.
repeated .tensorflow.TensorProto tensor_protos = 7;- Specified by:
getTensorProtosin interfaceExecutionOrBuilder
-
getTensorProtosOrBuilder
Output Tensor values in the type described by `tensor_value_type`. The length of this should match `num_outputs`.
repeated .tensorflow.TensorProto tensor_protos = 7;- Specified by:
getTensorProtosOrBuilderin interfaceExecutionOrBuilder
-
hasCodeLocation
public boolean hasCodeLocation()Stack trace of the eager execution.
.tensorflow.CodeLocation code_location = 8;- Specified by:
hasCodeLocationin interfaceExecutionOrBuilder- Returns:
- Whether the codeLocation field is set.
-
getCodeLocation
Stack trace of the eager execution.
.tensorflow.CodeLocation code_location = 8;- Specified by:
getCodeLocationin interfaceExecutionOrBuilder- Returns:
- The codeLocation.
-
getCodeLocationOrBuilder
Stack trace of the eager execution.
.tensorflow.CodeLocation code_location = 8;- Specified by:
getCodeLocationOrBuilderin interfaceExecutionOrBuilder
-
getOutputTensorDeviceIdsList
Debugged-generated IDs of the devices on which the output tensors reside. To look up details about the device (e.g., name), cross-reference this field with the DebuggedDevice messages.
repeated int32 output_tensor_device_ids = 9;- Specified by:
getOutputTensorDeviceIdsListin interfaceExecutionOrBuilder- Returns:
- A list containing the outputTensorDeviceIds.
-
getOutputTensorDeviceIdsCount
public int getOutputTensorDeviceIdsCount()Debugged-generated IDs of the devices on which the output tensors reside. To look up details about the device (e.g., name), cross-reference this field with the DebuggedDevice messages.
repeated int32 output_tensor_device_ids = 9;- Specified by:
getOutputTensorDeviceIdsCountin interfaceExecutionOrBuilder- Returns:
- The count of outputTensorDeviceIds.
-
getOutputTensorDeviceIds
public int getOutputTensorDeviceIds(int index) Debugged-generated IDs of the devices on which the output tensors reside. To look up details about the device (e.g., name), cross-reference this field with the DebuggedDevice messages.
repeated int32 output_tensor_device_ids = 9;- Specified by:
getOutputTensorDeviceIdsin interfaceExecutionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputTensorDeviceIds at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Execution parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Execution parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Execution parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Execution parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Execution parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Execution parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-