Class GraphExecutionTrace.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GraphExecutionTrace.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
org.tensorflow.proto.GraphExecutionTrace.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, GraphExecutionTraceOrBuilder
- Enclosing class:
GraphExecutionTrace
public static final class GraphExecutionTrace.Builder
extends 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
tensorflow.GraphExecutionTrace-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Name of the device that the op belongs to.Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).Output slot of the tensor (applicable only in the case of the `FULL_TENSOR` trace level).Type of the tensor value encapsulated in this proto.Tensor value in the type described by `tensor_value_type`.Unique ID of the context that the executed op(s) belong to (e.g., a compiled concrete tf.function).clone()static final Descriptors.DescriptorName of the device that the op belongs to.Name of the device that the op belongs to.Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).intOutput slot of the tensor (applicable only in the case of the `FULL_TENSOR` trace level).Type of the tensor value encapsulated in this proto.intType of the tensor value encapsulated in this proto.Tensor value in the type described by `tensor_value_type`.Tensor value in the type described by `tensor_value_type`.Tensor value in the type described by `tensor_value_type`.Unique ID of the context that the executed op(s) belong to (e.g., a compiled concrete tf.function).Unique ID of the context that the executed op(s) belong to (e.g., a compiled concrete tf.function).booleanTensor value in the type described by `tensor_value_type`.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(GraphExecutionTrace other) mergeTensorProto(TensorProto value) Tensor value in the type described by `tensor_value_type`.mergeUnknownFields(UnknownFieldSet unknownFields) setDeviceName(String value) Name of the device that the op belongs to.setDeviceNameBytes(ByteString value) Name of the device that the op belongs to.setField(Descriptors.FieldDescriptor field, Object value) Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).setOpNameBytes(ByteString value) Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).setOutputSlot(int value) Output slot of the tensor (applicable only in the case of the `FULL_TENSOR` trace level).setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) Type of the tensor value encapsulated in this proto.setTensorDebugModeValue(int value) Type of the tensor value encapsulated in this proto.setTensorProto(TensorProto value) Tensor value in the type described by `tensor_value_type`.setTensorProto(TensorProto.Builder builderForValue) Tensor value in the type described by `tensor_value_type`.setTfdbgContextId(String value) Unique ID of the context that the executed op(s) belong to (e.g., a compiled concrete tf.function).setTfdbgContextIdBytes(ByteString value) Unique ID of the context that the executed op(s) belong to (e.g., a compiled concrete tf.function).setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
setRepeatedField
public GraphExecutionTrace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
addRepeatedField
public GraphExecutionTrace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<GraphExecutionTrace.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
mergeFrom
public GraphExecutionTrace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<GraphExecutionTrace.Builder>- Throws:
IOException
-
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:
getTfdbgContextIdin interfaceGraphExecutionTraceOrBuilder- Returns:
- The tfdbgContextId.
-
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:
getTfdbgContextIdBytesin interfaceGraphExecutionTraceOrBuilder- Returns:
- The bytes for tfdbgContextId.
-
setTfdbgContextId
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
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
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
Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).
string op_name = 2;- Specified by:
getOpNamein interfaceGraphExecutionTraceOrBuilder- Returns:
- The opName.
-
getOpNameBytes
Name of the op (applicable only in the case of the `FULL_TENSOR` trace level).
string op_name = 2;- Specified by:
getOpNameBytesin interfaceGraphExecutionTraceOrBuilder- Returns:
- The bytes for opName.
-
setOpName
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
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
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:
getOutputSlotin interfaceGraphExecutionTraceOrBuilder- Returns:
- The outputSlot.
-
setOutputSlot
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
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.
.tensorflow.TensorDebugMode tensor_debug_mode = 4;- Specified by:
getTensorDebugModeValuein interfaceGraphExecutionTraceOrBuilder- Returns:
- The enum numeric value on the wire for tensorDebugMode.
-
setTensorDebugModeValue
Type of the tensor value encapsulated in this proto.
.tensorflow.TensorDebugMode tensor_debug_mode = 4;- Parameters:
value- The enum numeric value on the wire for tensorDebugMode to set.- Returns:
- This builder for chaining.
-
getTensorDebugMode
Type of the tensor value encapsulated in this proto.
.tensorflow.TensorDebugMode tensor_debug_mode = 4;- Specified by:
getTensorDebugModein interfaceGraphExecutionTraceOrBuilder- Returns:
- The tensorDebugMode.
-
setTensorDebugMode
Type of the tensor value encapsulated in this proto.
.tensorflow.TensorDebugMode tensor_debug_mode = 4;- Parameters:
value- The tensorDebugMode to set.- Returns:
- This builder for chaining.
-
clearTensorDebugMode
Type of the tensor value encapsulated in this proto.
.tensorflow.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.
.tensorflow.TensorProto tensor_proto = 5;- Specified by:
hasTensorProtoin interfaceGraphExecutionTraceOrBuilder- Returns:
- Whether the tensorProto field is set.
-
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;- Specified by:
getTensorProtoin interfaceGraphExecutionTraceOrBuilder- Returns:
- The tensorProto.
-
setTensorProto
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; -
setTensorProto
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; -
mergeTensorProto
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; -
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; -
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; -
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;- Specified by:
getTensorProtoOrBuilderin interfaceGraphExecutionTraceOrBuilder
-
getDeviceName
Name of the device that the op belongs to.
string device_name = 6;- Specified by:
getDeviceNamein interfaceGraphExecutionTraceOrBuilder- Returns:
- The deviceName.
-
getDeviceNameBytes
Name of the device that the op belongs to.
string device_name = 6;- Specified by:
getDeviceNameBytesin interfaceGraphExecutionTraceOrBuilder- Returns:
- The bytes for deviceName.
-
setDeviceName
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
Name of the device that the op belongs to.
string device_name = 6;- Returns:
- This builder for chaining.
-
setDeviceNameBytes
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
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-