Class DebugEvent

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

    public final class DebugEvent
    extends com.google.protobuf.GeneratedMessageV3
    implements DebugEventOrBuilder
     An Event related to the debugging of a TensorFlow program.
     
    Protobuf type org.platanios.tensorflow.proto.DebugEvent
    See Also:
    Serialized Form
    • Field Detail

      • DEBUG_METADATA_FIELD_NUMBER

        public static final int DEBUG_METADATA_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_FILE_FIELD_NUMBER

        public static final int SOURCE_FILE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STACK_FRAME_WITH_ID_FIELD_NUMBER

        public static final int STACK_FRAME_WITH_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GRAPH_OP_CREATION_FIELD_NUMBER

        public static final int GRAPH_OP_CREATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEBUGGED_GRAPH_FIELD_NUMBER

        public static final int DEBUGGED_GRAPH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GRAPH_EXECUTION_TRACE_FIELD_NUMBER

        public static final int GRAPH_EXECUTION_TRACE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEBUGGED_DEVICE_FIELD_NUMBER

        public static final int DEBUGGED_DEVICE_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
      • getWallTime

        public double getWallTime()
         Timestamp in seconds (with microsecond precision).
         
        double wall_time = 1;
        Specified by:
        getWallTime in interface DebugEventOrBuilder
        Returns:
        The wallTime.
      • getStep

        public long getStep()
         Step of training (if available).
         
        int64 step = 2;
        Specified by:
        getStep in interface DebugEventOrBuilder
        Returns:
        The step.
      • hasDebugMetadata

        public boolean hasDebugMetadata()
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
        Specified by:
        hasDebugMetadata in interface DebugEventOrBuilder
        Returns:
        Whether the debugMetadata field is set.
      • getDebugMetadata

        public DebugMetadata getDebugMetadata()
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
        Specified by:
        getDebugMetadata in interface DebugEventOrBuilder
        Returns:
        The debugMetadata.
      • hasSourceFile

        public boolean hasSourceFile()
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
        Specified by:
        hasSourceFile in interface DebugEventOrBuilder
        Returns:
        Whether the sourceFile field is set.
      • getSourceFile

        public SourceFile getSourceFile()
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
        Specified by:
        getSourceFile in interface DebugEventOrBuilder
        Returns:
        The sourceFile.
      • hasStackFrameWithId

        public boolean hasStackFrameWithId()
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
        Specified by:
        hasStackFrameWithId in interface DebugEventOrBuilder
        Returns:
        Whether the stackFrameWithId field is set.
      • getStackFrameWithId

        public StackFrameWithId getStackFrameWithId()
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
        Specified by:
        getStackFrameWithId in interface DebugEventOrBuilder
        Returns:
        The stackFrameWithId.
      • hasGraphOpCreation

        public boolean hasGraphOpCreation()
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
        Specified by:
        hasGraphOpCreation in interface DebugEventOrBuilder
        Returns:
        Whether the graphOpCreation field is set.
      • getGraphOpCreation

        public GraphOpCreation getGraphOpCreation()
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
        Specified by:
        getGraphOpCreation in interface DebugEventOrBuilder
        Returns:
        The graphOpCreation.
      • hasDebuggedGraph

        public boolean hasDebuggedGraph()
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
        Specified by:
        hasDebuggedGraph in interface DebugEventOrBuilder
        Returns:
        Whether the debuggedGraph field is set.
      • getDebuggedGraph

        public DebuggedGraph getDebuggedGraph()
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
        Specified by:
        getDebuggedGraph in interface DebugEventOrBuilder
        Returns:
        The debuggedGraph.
      • hasExecution

        public boolean hasExecution()
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
        Specified by:
        hasExecution in interface DebugEventOrBuilder
        Returns:
        Whether the execution field is set.
      • getExecution

        public Execution getExecution()
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
        Specified by:
        getExecution in interface DebugEventOrBuilder
        Returns:
        The execution.
      • hasGraphExecutionTrace

        public boolean hasGraphExecutionTrace()
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
        Specified by:
        hasGraphExecutionTrace in interface DebugEventOrBuilder
        Returns:
        Whether the graphExecutionTrace field is set.
      • getGraphExecutionTrace

        public GraphExecutionTrace getGraphExecutionTrace()
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
        Specified by:
        getGraphExecutionTrace in interface DebugEventOrBuilder
        Returns:
        The graphExecutionTrace.
      • getGraphId

        public java.lang.String getGraphId()
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Specified by:
        getGraphId in interface DebugEventOrBuilder
        Returns:
        The graphId.
      • getGraphIdBytes

        public com.google.protobuf.ByteString getGraphIdBytes()
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Specified by:
        getGraphIdBytes in interface DebugEventOrBuilder
        Returns:
        The bytes for graphId.
      • hasDebuggedDevice

        public boolean hasDebuggedDevice()
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
        Specified by:
        hasDebuggedDevice in interface DebugEventOrBuilder
        Returns:
        Whether the debuggedDevice field is set.
      • getDebuggedDevice

        public DebuggedDevice getDebuggedDevice()
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
        Specified by:
        getDebuggedDevice in interface DebugEventOrBuilder
        Returns:
        The debuggedDevice.
      • 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 DebugEvent parseFrom​(java.nio.ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static DebugEvent getDefaultInstance()
      • parser

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

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