GraphExecutionTrace.Builder

public static final class GraphExecutionTrace.Builder

 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 tensorflow.GraphExecutionTrace

Public Methods

GraphExecutionTrace.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GraphExecutionTrace
build()
GraphExecutionTrace
GraphExecutionTrace.Builder
clear()
GraphExecutionTrace.Builder
clearDeviceName()
 Name of the device that the op belongs to.
GraphExecutionTrace.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GraphExecutionTrace.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GraphExecutionTrace.Builder
clearOpName()
 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
GraphExecutionTrace.Builder
clearOutputSlot()
 Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
 trace level).
GraphExecutionTrace.Builder
clearTensorDebugMode()
 Type of the tensor value encapsulated in this proto.
GraphExecutionTrace.Builder
clearTensorProto()
 Tensor value in the type described by `tensor_value_type`.
GraphExecutionTrace.Builder
clearTfdbgContextId()
 Unique ID of the context that the executed op(s) belong to (e.g., a
 compiled concrete tf.function).
GraphExecutionTrace.Builder
clone()
GraphExecutionTrace
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getDeviceName()
 Name of the device that the op belongs to.
com.google.protobuf.ByteString
getDeviceNameBytes()
 Name of the device that the op belongs to.
String
getOpName()
 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
com.google.protobuf.ByteString
getOpNameBytes()
 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
int
getOutputSlot()
 Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
 trace level).
TensorDebugMode
getTensorDebugMode()
 Type of the tensor value encapsulated in this proto.
int
getTensorDebugModeValue()
 Type of the tensor value encapsulated in this proto.
TensorProto
getTensorProto()
 Tensor value in the type described by `tensor_value_type`.
TensorProto.Builder
getTensorProtoBuilder()
 Tensor value in the type described by `tensor_value_type`.
TensorProtoOrBuilder
getTensorProtoOrBuilder()
 Tensor value in the type described by `tensor_value_type`.
String
getTfdbgContextId()
 Unique ID of the context that the executed op(s) belong to (e.g., a
 compiled concrete tf.function).
com.google.protobuf.ByteString
getTfdbgContextIdBytes()
 Unique ID of the context that the executed op(s) belong to (e.g., a
 compiled concrete tf.function).
boolean
hasTensorProto()
 Tensor value in the type described by `tensor_value_type`.
final boolean
GraphExecutionTrace.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GraphExecutionTrace.Builder
mergeFrom(com.google.protobuf.Message other)
GraphExecutionTrace.Builder
mergeTensorProto(TensorProto value)
 Tensor value in the type described by `tensor_value_type`.
final GraphExecutionTrace.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GraphExecutionTrace.Builder
setDeviceName(String value)
 Name of the device that the op belongs to.
GraphExecutionTrace.Builder
setDeviceNameBytes(com.google.protobuf.ByteString value)
 Name of the device that the op belongs to.
GraphExecutionTrace.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GraphExecutionTrace.Builder
setOpName(String value)
 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
GraphExecutionTrace.Builder
setOpNameBytes(com.google.protobuf.ByteString value)
 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
GraphExecutionTrace.Builder
setOutputSlot(int value)
 Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
 trace level).
GraphExecutionTrace.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GraphExecutionTrace.Builder
setTensorDebugMode(TensorDebugMode value)
 Type of the tensor value encapsulated in this proto.
GraphExecutionTrace.Builder
setTensorDebugModeValue(int value)
 Type of the tensor value encapsulated in this proto.
GraphExecutionTrace.Builder
setTensorProto(TensorProto value)
 Tensor value in the type described by `tensor_value_type`.
GraphExecutionTrace.Builder
setTensorProto(TensorProto.Builder builderForValue)
 Tensor value in the type described by `tensor_value_type`.
GraphExecutionTrace.Builder
setTfdbgContextId(String value)
 Unique ID of the context that the executed op(s) belong to (e.g., a
 compiled concrete tf.function).
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).
final GraphExecutionTrace.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public GraphExecutionTrace.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public GraphExecutionTrace build ()

public GraphExecutionTrace buildPartial ()

public GraphExecutionTrace.Builder clear ()

public GraphExecutionTrace.Builder clearDeviceName ()

 Name of the device that the op belongs to.
 
string device_name = 6;

public GraphExecutionTrace.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public GraphExecutionTrace.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public GraphExecutionTrace.Builder clearOpName ()

 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
 
string op_name = 2;

public GraphExecutionTrace.Builder clearOutputSlot ()

 Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
 trace level).
 
int32 output_slot = 3;

public GraphExecutionTrace.Builder clearTensorDebugMode ()

 Type of the tensor value encapsulated in this proto.
 
.tensorflow.TensorDebugMode tensor_debug_mode = 4;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

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;

public GraphExecutionTrace.Builder clone ()

public GraphExecutionTrace getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public String getDeviceName ()

 Name of the device that the op belongs to.
 
string device_name = 6;

public com.google.protobuf.ByteString getDeviceNameBytes ()

 Name of the device that the op belongs to.
 
string device_name = 6;

public String getOpName ()

 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
 
string op_name = 2;

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;

public int getOutputSlot ()

 Output slot of the tensor (applicable only in the case of the `FULL_TENSOR`
 trace level).
 
int32 output_slot = 3;

public TensorDebugMode getTensorDebugMode ()

 Type of the tensor value encapsulated in this proto.
 
.tensorflow.TensorDebugMode tensor_debug_mode = 4;

public int getTensorDebugModeValue ()

 Type of the tensor value encapsulated in this proto.
 
.tensorflow.TensorDebugMode tensor_debug_mode = 4;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

public 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;

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;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

public final boolean isInitialized ()

public GraphExecutionTrace.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public GraphExecutionTrace.Builder mergeFrom (com.google.protobuf.Message other)

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.
 
.tensorflow.TensorProto tensor_proto = 5;

public final GraphExecutionTrace.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public GraphExecutionTrace.Builder setDeviceName (String value)

 Name of the device that the op belongs to.
 
string device_name = 6;

public GraphExecutionTrace.Builder setDeviceNameBytes (com.google.protobuf.ByteString value)

 Name of the device that the op belongs to.
 
string device_name = 6;

public GraphExecutionTrace.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public GraphExecutionTrace.Builder setOpName (String value)

 Name of the op (applicable only in the case of the `FULL_TENSOR` trace
 level).
 
string op_name = 2;

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;

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;

public GraphExecutionTrace.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public GraphExecutionTrace.Builder setTensorDebugMode (TensorDebugMode value)

 Type of the tensor value encapsulated in this proto.
 
.tensorflow.TensorDebugMode tensor_debug_mode = 4;

public GraphExecutionTrace.Builder setTensorDebugModeValue (int value)

 Type of the tensor value encapsulated in this proto.
 
.tensorflow.TensorDebugMode tensor_debug_mode = 4;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

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.
 
.tensorflow.TensorProto tensor_proto = 5;

public GraphExecutionTrace.Builder setTfdbgContextId (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;

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;

public final GraphExecutionTrace.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)