Class Execution

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

    public final class Execution
    extends com.google.protobuf.GeneratedMessageV3
    implements 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 org.platanios.tensorflow.proto.Execution
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Execution.Builder
      Data relating to the eager execution of an op or a Graph.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

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

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      CodeLocation getCodeLocation()
      Stack trace of the eager execution.
      CodeLocationOrBuilder getCodeLocationOrBuilder()
      Stack trace of the eager execution.
      static Execution getDefaultInstance()  
      Execution getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      java.lang.String getGraphId()
      The graph that's executed: applicable only to the eager execution of a FuncGraph.
      com.google.protobuf.ByteString getGraphIdBytes()
      The graph that's executed: applicable only to the eager execution of a FuncGraph.
      long getInputTensorIds​(int index)
      IDs of the input tensors (if available).
      int getInputTensorIdsCount()
      IDs of the input tensors (if available).
      java.util.List<java.lang.Long> getInputTensorIdsList()
      IDs of the input tensors (if available).
      int getNumOutputs()
      Number of output tensors.
      java.lang.String getOpType()
      Op type (e.g., "MatMul").
      com.google.protobuf.ByteString getOpTypeBytes()
      Op type (e.g., "MatMul").
      int getOutputTensorDeviceIds​(int index)
      Debugged-generated IDs of the devices on which the output tensors reside.
      int getOutputTensorDeviceIdsCount()
      Debugged-generated IDs of the devices on which the output tensors reside.
      java.util.List<java.lang.Integer> getOutputTensorDeviceIdsList()
      Debugged-generated IDs of the devices on which the output tensors reside.
      long getOutputTensorIds​(int index)
      IDs of the output tensors (if availbable).
      int getOutputTensorIdsCount()
      IDs of the output tensors (if availbable).
      java.util.List<java.lang.Long> getOutputTensorIdsList()
      IDs of the output tensors (if availbable).
      com.google.protobuf.Parser<Execution> getParserForType()  
      int getSerializedSize()  
      TensorDebugMode getTensorDebugMode()
      Type of the tensor value encapsulated in this proto.
      int getTensorDebugModeValue()
      Type of the tensor value encapsulated in this proto.
      TensorProto getTensorProtos​(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      int getTensorProtosCount()
      Output Tensor values in the type described by `tensor_value_type`.
      java.util.List<TensorProto> getTensorProtosList()
      Output Tensor values in the type described by `tensor_value_type`.
      TensorProtoOrBuilder getTensorProtosOrBuilder​(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      java.util.List<? extends TensorProtoOrBuilder> getTensorProtosOrBuilderList()
      Output Tensor values in the type described by `tensor_value_type`.
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      boolean hasCodeLocation()
      Stack trace of the eager execution.
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Execution.Builder newBuilder()  
      static Execution.Builder newBuilder​(Execution prototype)  
      Execution.Builder newBuilderForType()  
      protected Execution.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Execution parseDelimitedFrom​(java.io.InputStream input)  
      static Execution parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Execution parseFrom​(byte[] data)  
      static Execution parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Execution parseFrom​(com.google.protobuf.ByteString data)  
      static Execution parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Execution parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Execution parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Execution parseFrom​(java.io.InputStream input)  
      static Execution parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Execution parseFrom​(java.nio.ByteBuffer data)  
      static Execution parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Execution> parser()  
      Execution.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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 com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
    • Field Detail

      • NUM_OUTPUTS_FIELD_NUMBER

        public static final int NUM_OUTPUTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INPUT_TENSOR_IDS_FIELD_NUMBER

        public static final int INPUT_TENSOR_IDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OUTPUT_TENSOR_IDS_FIELD_NUMBER

        public static final int OUTPUT_TENSOR_IDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TENSOR_DEBUG_MODE_FIELD_NUMBER

        public static final int TENSOR_DEBUG_MODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TENSOR_PROTOS_FIELD_NUMBER

        public static final int TENSOR_PROTOS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CODE_LOCATION_FIELD_NUMBER

        public static final int CODE_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OUTPUT_TENSOR_DEVICE_IDS_FIELD_NUMBER

        public static final int OUTPUT_TENSOR_DEVICE_IDS_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
      • getOpType

        public java.lang.String 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:
        getOpType in interface ExecutionOrBuilder
        Returns:
        The opType.
      • getOpTypeBytes

        public com.google.protobuf.ByteString 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:
        getOpTypeBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for opType.
      • getNumOutputs

        public int getNumOutputs()
         Number of output tensors.
         
        int32 num_outputs = 2;
        Specified by:
        getNumOutputs in interface ExecutionOrBuilder
        Returns:
        The numOutputs.
      • getGraphId

        public java.lang.String getGraphId()
         The graph that's executed: applicable only to the eager
         execution of a FuncGraph.
         
        string graph_id = 3;
        Specified by:
        getGraphId in interface ExecutionOrBuilder
        Returns:
        The graphId.
      • getGraphIdBytes

        public com.google.protobuf.ByteString getGraphIdBytes()
         The graph that's executed: applicable only to the eager
         execution of a FuncGraph.
         
        string graph_id = 3;
        Specified by:
        getGraphIdBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for graphId.
      • getInputTensorIdsList

        public java.util.List<java.lang.Long> getInputTensorIdsList()
         IDs of the input tensors (if available).
         
        repeated int64 input_tensor_ids = 4;
        Specified by:
        getInputTensorIdsList in interface ExecutionOrBuilder
        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:
        getInputTensorIdsCount in interface ExecutionOrBuilder
        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:
        getInputTensorIds in interface ExecutionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The inputTensorIds at the given index.
      • getOutputTensorIdsList

        public java.util.List<java.lang.Long> 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:
        getOutputTensorIdsList in interface ExecutionOrBuilder
        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:
        getOutputTensorIdsCount in interface ExecutionOrBuilder
        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:
        getOutputTensorIds in interface ExecutionOrBuilder
        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.
         
        .org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 6;
        Specified by:
        getTensorDebugModeValue in interface ExecutionOrBuilder
        Returns:
        The enum numeric value on the wire for tensorDebugMode.
      • getTensorDebugMode

        public TensorDebugMode getTensorDebugMode()
         Type of the tensor value encapsulated in this proto.
         
        .org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 6;
        Specified by:
        getTensorDebugMode in interface ExecutionOrBuilder
        Returns:
        The tensorDebugMode.
      • getTensorProtosList

        public java.util.List<TensorProto> getTensorProtosList()
         Output Tensor values in the type described by `tensor_value_type`.
         The length of this should match `num_outputs`.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor_protos = 7;
        Specified by:
        getTensorProtosList in interface ExecutionOrBuilder
      • getTensorProtosOrBuilderList

        public java.util.List<? extends TensorProtoOrBuilder> getTensorProtosOrBuilderList()
         Output Tensor values in the type described by `tensor_value_type`.
         The length of this should match `num_outputs`.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor_protos = 7;
        Specified by:
        getTensorProtosOrBuilderList in interface ExecutionOrBuilder
      • getTensorProtosCount

        public int getTensorProtosCount()
         Output Tensor values in the type described by `tensor_value_type`.
         The length of this should match `num_outputs`.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor_protos = 7;
        Specified by:
        getTensorProtosCount in interface ExecutionOrBuilder
      • getTensorProtos

        public TensorProto getTensorProtos​(int index)
         Output Tensor values in the type described by `tensor_value_type`.
         The length of this should match `num_outputs`.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor_protos = 7;
        Specified by:
        getTensorProtos in interface ExecutionOrBuilder
      • getTensorProtosOrBuilder

        public TensorProtoOrBuilder getTensorProtosOrBuilder​(int index)
         Output Tensor values in the type described by `tensor_value_type`.
         The length of this should match `num_outputs`.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensor_protos = 7;
        Specified by:
        getTensorProtosOrBuilder in interface ExecutionOrBuilder
      • hasCodeLocation

        public boolean hasCodeLocation()
         Stack trace of the eager execution.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
        Specified by:
        hasCodeLocation in interface ExecutionOrBuilder
        Returns:
        Whether the codeLocation field is set.
      • getCodeLocation

        public CodeLocation getCodeLocation()
         Stack trace of the eager execution.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
        Specified by:
        getCodeLocation in interface ExecutionOrBuilder
        Returns:
        The codeLocation.
      • getOutputTensorDeviceIdsList

        public java.util.List<java.lang.Integer> 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:
        getOutputTensorDeviceIdsList in interface ExecutionOrBuilder
        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:
        getOutputTensorDeviceIdsCount in interface ExecutionOrBuilder
        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:
        getOutputTensorDeviceIds in interface ExecutionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The outputTensorDeviceIds at the given index.
      • 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 Execution parseFrom​(java.nio.ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static Execution getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Execution> 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 Execution getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder