Class GraphExecutionTrace.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, GraphExecutionTraceOrBuilder
    Enclosing class:
    GraphExecutionTrace

    public static final class GraphExecutionTrace.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
    implements GraphExecutionTraceOrBuilder
     Data relating to an execution of a Graph (e.g., an eager execution of a
     FuncGraph).
     The values of the intermediate tensors computed in the graph are recorded
     in this proto. A graph execution may correspond to one or more pieces of
     `GraphExecutionTrace`, depending on whether the instrumented tensor values
     are summarized in an aggregated or separate fashion.
     
    Protobuf type org.platanios.tensorflow.proto.GraphExecutionTrace
    • Method Detail

      • 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.Builder<GraphExecutionTrace.Builder>
      • clear

        public GraphExecutionTrace.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • getDefaultInstanceForType

        public GraphExecutionTrace getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GraphExecutionTrace build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GraphExecutionTrace buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GraphExecutionTrace.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • setField

        public GraphExecutionTrace.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • clearField

        public GraphExecutionTrace.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • clearOneof

        public GraphExecutionTrace.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • setRepeatedField

        public GraphExecutionTrace.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • addRepeatedField

        public GraphExecutionTrace.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • mergeFrom

        public GraphExecutionTrace.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GraphExecutionTrace.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • mergeFrom

        public GraphExecutionTrace.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GraphExecutionTrace.Builder>
        Throws:
        java.io.IOException
      • getTfdbgContextId

        public java.lang.String getTfdbgContextId()
         Unique ID of the context that the executed op(s) belong to (e.g., a
         compiled concrete tf.function).
         
        string tfdbg_context_id = 1;
        Specified by:
        getTfdbgContextId in interface GraphExecutionTraceOrBuilder
        Returns:
        The tfdbgContextId.
      • getTfdbgContextIdBytes

        public com.google.protobuf.ByteString getTfdbgContextIdBytes()
         Unique ID of the context that the executed op(s) belong to (e.g., a
         compiled concrete tf.function).
         
        string tfdbg_context_id = 1;
        Specified by:
        getTfdbgContextIdBytes in interface GraphExecutionTraceOrBuilder
        Returns:
        The bytes for tfdbgContextId.
      • setTfdbgContextId

        public GraphExecutionTrace.Builder setTfdbgContextId​(java.lang.String value)
         Unique ID of the context that the executed op(s) belong to (e.g., a
         compiled concrete tf.function).
         
        string tfdbg_context_id = 1;
        Parameters:
        value - The tfdbgContextId to set.
        Returns:
        This builder for chaining.
      • clearTfdbgContextId

        public GraphExecutionTrace.Builder clearTfdbgContextId()
         Unique ID of the context that the executed op(s) belong to (e.g., a
         compiled concrete tf.function).
         
        string tfdbg_context_id = 1;
        Returns:
        This builder for chaining.
      • setTfdbgContextIdBytes

        public GraphExecutionTrace.Builder setTfdbgContextIdBytes​(com.google.protobuf.ByteString value)
         Unique ID of the context that the executed op(s) belong to (e.g., a
         compiled concrete tf.function).
         
        string tfdbg_context_id = 1;
        Parameters:
        value - The bytes for tfdbgContextId to set.
        Returns:
        This builder for chaining.
      • getOpName

        public java.lang.String getOpName()
         Name of the op (applicable only in the case of the `FULL_TENSOR` trace
         level).
         
        string op_name = 2;
        Specified by:
        getOpName in interface GraphExecutionTraceOrBuilder
        Returns:
        The opName.
      • getOpNameBytes

        public com.google.protobuf.ByteString getOpNameBytes()
         Name of the op (applicable only in the case of the `FULL_TENSOR` trace
         level).
         
        string op_name = 2;
        Specified by:
        getOpNameBytes in interface GraphExecutionTraceOrBuilder
        Returns:
        The bytes for opName.
      • setOpName

        public GraphExecutionTrace.Builder setOpName​(java.lang.String value)
         Name of the op (applicable only in the case of the `FULL_TENSOR` trace
         level).
         
        string op_name = 2;
        Parameters:
        value - The opName to set.
        Returns:
        This builder for chaining.
      • clearOpName

        public GraphExecutionTrace.Builder clearOpName()
         Name of the op (applicable only in the case of the `FULL_TENSOR` trace
         level).
         
        string op_name = 2;
        Returns:
        This builder for chaining.
      • setOpNameBytes

        public GraphExecutionTrace.Builder setOpNameBytes​(com.google.protobuf.ByteString value)
         Name of the op (applicable only in the case of the `FULL_TENSOR` trace
         level).
         
        string op_name = 2;
        Parameters:
        value - The bytes for opName to set.
        Returns:
        This builder for chaining.
      • getOutputSlot

        public int getOutputSlot()
         Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
         trace level).
         
        int32 output_slot = 3;
        Specified by:
        getOutputSlot in interface GraphExecutionTraceOrBuilder
        Returns:
        The outputSlot.
      • setOutputSlot

        public GraphExecutionTrace.Builder setOutputSlot​(int value)
         Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
         trace level).
         
        int32 output_slot = 3;
        Parameters:
        value - The outputSlot to set.
        Returns:
        This builder for chaining.
      • clearOutputSlot

        public GraphExecutionTrace.Builder clearOutputSlot()
         Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
         trace level).
         
        int32 output_slot = 3;
        Returns:
        This builder for chaining.
      • getTensorDebugModeValue

        public int getTensorDebugModeValue()
         Type of the tensor value encapsulated in this proto.
         
        .org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 4;
        Specified by:
        getTensorDebugModeValue in interface GraphExecutionTraceOrBuilder
        Returns:
        The enum numeric value on the wire for tensorDebugMode.
      • setTensorDebugModeValue

        public GraphExecutionTrace.Builder setTensorDebugModeValue​(int value)
         Type of the tensor value encapsulated in this proto.
         
        .org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 4;
        Parameters:
        value - The enum numeric value on the wire for tensorDebugMode to set.
        Returns:
        This builder for chaining.
      • setTensorDebugMode

        public GraphExecutionTrace.Builder setTensorDebugMode​(TensorDebugMode value)
         Type of the tensor value encapsulated in this proto.
         
        .org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 4;
        Parameters:
        value - The tensorDebugMode to set.
        Returns:
        This builder for chaining.
      • clearTensorDebugMode

        public GraphExecutionTrace.Builder clearTensorDebugMode()
         Type of the tensor value encapsulated in this proto.
         
        .org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 4;
        Returns:
        This builder for chaining.
      • hasTensorProto

        public boolean hasTensorProto()
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
        Specified by:
        hasTensorProto in interface GraphExecutionTraceOrBuilder
        Returns:
        Whether the tensorProto field is set.
      • getTensorProto

        public TensorProto getTensorProto()
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
        Specified by:
        getTensorProto in interface GraphExecutionTraceOrBuilder
        Returns:
        The tensorProto.
      • setTensorProto

        public GraphExecutionTrace.Builder setTensorProto​(TensorProto value)
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
      • setTensorProto

        public GraphExecutionTrace.Builder setTensorProto​(TensorProto.Builder builderForValue)
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
      • mergeTensorProto

        public GraphExecutionTrace.Builder mergeTensorProto​(TensorProto value)
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
      • clearTensorProto

        public GraphExecutionTrace.Builder clearTensorProto()
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
      • getTensorProtoBuilder

        public TensorProto.Builder getTensorProtoBuilder()
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
      • getTensorProtoOrBuilder

        public TensorProtoOrBuilder getTensorProtoOrBuilder()
         Tensor value in the type described by `tensor_value_type`.
         This tensor may summarize the value of a single intermediate op of the
         graph, or those of multiple intermediate tensors.
         
        .org.platanios.tensorflow.proto.TensorProto tensor_proto = 5;
        Specified by:
        getTensorProtoOrBuilder in interface GraphExecutionTraceOrBuilder
      • getDeviceName

        public java.lang.String getDeviceName()
         Name of the device that the op belongs to.
         
        string device_name = 6;
        Specified by:
        getDeviceName in interface GraphExecutionTraceOrBuilder
        Returns:
        The deviceName.
      • getDeviceNameBytes

        public com.google.protobuf.ByteString getDeviceNameBytes()
         Name of the device that the op belongs to.
         
        string device_name = 6;
        Specified by:
        getDeviceNameBytes in interface GraphExecutionTraceOrBuilder
        Returns:
        The bytes for deviceName.
      • setDeviceName

        public GraphExecutionTrace.Builder setDeviceName​(java.lang.String value)
         Name of the device that the op belongs to.
         
        string device_name = 6;
        Parameters:
        value - The deviceName to set.
        Returns:
        This builder for chaining.
      • clearDeviceName

        public GraphExecutionTrace.Builder clearDeviceName()
         Name of the device that the op belongs to.
         
        string device_name = 6;
        Returns:
        This builder for chaining.
      • setDeviceNameBytes

        public GraphExecutionTrace.Builder setDeviceNameBytes​(com.google.protobuf.ByteString value)
         Name of the device that the op belongs to.
         
        string device_name = 6;
        Parameters:
        value - The bytes for deviceName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GraphExecutionTrace.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
      • mergeUnknownFields

        public final GraphExecutionTrace.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>