Package org.platanios.tensorflow.proto
Class GraphExecutionTrace.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
- org.platanios.tensorflow.proto.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 typeorg.platanios.tensorflow.proto.GraphExecutionTrace
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphExecutionTrace.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
GraphExecutionTrace
build()
GraphExecutionTrace
buildPartial()
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
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.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.java.lang.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`.java.lang.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`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GraphExecutionTrace.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GraphExecutionTrace.Builder
mergeFrom(com.google.protobuf.Message other)
GraphExecutionTrace.Builder
mergeFrom(GraphExecutionTrace other)
GraphExecutionTrace.Builder
mergeTensorProto(TensorProto value)
Tensor value in the type described by `tensor_value_type`.GraphExecutionTrace.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GraphExecutionTrace.Builder
setDeviceName(java.lang.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, java.lang.Object value)
GraphExecutionTrace.Builder
setOpName(java.lang.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, java.lang.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(java.lang.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).GraphExecutionTrace.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
clear
public GraphExecutionTrace.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
getDefaultInstanceForType
public GraphExecutionTrace getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GraphExecutionTrace build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GraphExecutionTrace buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GraphExecutionTrace.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
clearField
public GraphExecutionTrace.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
clearOneof
public GraphExecutionTrace.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
mergeFrom
public GraphExecutionTrace.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GraphExecutionTrace.Builder>
-
mergeFrom
public GraphExecutionTrace.Builder mergeFrom(GraphExecutionTrace other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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.
-
getTensorDebugMode
public TensorDebugMode getTensorDebugMode()
Type of the tensor value encapsulated in this proto.
.org.platanios.tensorflow.proto.TensorDebugMode tensor_debug_mode = 4;
- Specified by:
getTensorDebugMode
in interfaceGraphExecutionTraceOrBuilder
- Returns:
- The tensorDebugMode.
-
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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
-
getDeviceName
public java.lang.String getDeviceName()
Name of the device that the op belongs to.
string device_name = 6;
- Specified by:
getDeviceName
in interfaceGraphExecutionTraceOrBuilder
- 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 interfaceGraphExecutionTraceOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
mergeUnknownFields
public final GraphExecutionTrace.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphExecutionTrace.Builder>
-
-