Class OpPerformanceData.OpPerformance.OpMemory.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, OpPerformanceData.OpPerformance.OpMemoryOrBuilder
- Enclosing class:
OpPerformanceData.OpPerformance.OpMemory
public static final class OpPerformanceData.OpPerformance.OpMemory.Builder
extends GeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
implements OpPerformanceData.OpPerformance.OpMemoryOrBuilder
Memory usage data for a tensorflow operation.Protobuf type
tensorflow.OpPerformance.OpMemory-
Method Summary
Modifier and TypeMethodDescriptionaddAllOutputMemory(Iterable<? extends Long> values) The output information may have memory usage and output shapes.addOutputMemory(long value) The output information may have memory usage and output shapes.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Deprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated.Deprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated.The output information may have memory usage and output shapes.int64 persistent_memory = 4;Temp and persistent memory allocated by this node.clone()static final Descriptors.DescriptorlongDeprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated.longDeprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated.longgetOutputMemory(int index) The output information may have memory usage and output shapes.intThe output information may have memory usage and output shapes.The output information may have memory usage and output shapes.longint64 persistent_memory = 4;longTemp and persistent memory allocated by this node.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeUnknownFields(UnknownFieldSet unknownFields) setDevicePersistentMemory(long value) Deprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated.setDeviceTempMemory(long value) Deprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated.setField(Descriptors.FieldDescriptor field, Object value) setOutputMemory(int index, long value) The output information may have memory usage and output shapes.setPersistentMemory(long value) int64 persistent_memory = 4;setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setTempMemory(long value) Temp and persistent memory allocated by this node.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<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.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<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
setField
public OpPerformanceData.OpPerformance.OpMemory.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
clearField
public OpPerformanceData.OpPerformance.OpMemory.Builder clearField(Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
clearOneof
public OpPerformanceData.OpPerformance.OpMemory.Builder clearOneof(Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
setRepeatedField
public OpPerformanceData.OpPerformance.OpMemory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
addRepeatedField
public OpPerformanceData.OpPerformance.OpMemory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
mergeFrom
public OpPerformanceData.OpPerformance.OpMemory.Builder mergeFrom(OpPerformanceData.OpPerformance.OpMemory other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
mergeFrom
public OpPerformanceData.OpPerformance.OpMemory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>- Throws:
IOException
-
getOutputMemoryList
The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Specified by:
getOutputMemoryListin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Returns:
- A list containing the outputMemory.
-
getOutputMemoryCount
public int getOutputMemoryCount()The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Specified by:
getOutputMemoryCountin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Returns:
- The count of outputMemory.
-
getOutputMemory
public long getOutputMemory(int index) The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Specified by:
getOutputMemoryin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputMemory at the given index.
-
setOutputMemory
The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Parameters:
index- The index to set the value at.value- The outputMemory to set.- Returns:
- This builder for chaining.
-
addOutputMemory
The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Parameters:
value- The outputMemory to add.- Returns:
- This builder for chaining.
-
addAllOutputMemory
public OpPerformanceData.OpPerformance.OpMemory.Builder addAllOutputMemory(Iterable<? extends Long> values) The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Parameters:
values- The outputMemory to add.- Returns:
- This builder for chaining.
-
clearOutputMemory
The output information may have memory usage and output shapes.
repeated int64 output_memory = 1;- Returns:
- This builder for chaining.
-
getTempMemory
public long getTempMemory()Temp and persistent memory allocated by this node.
int64 temp_memory = 2;- Specified by:
getTempMemoryin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Returns:
- The tempMemory.
-
setTempMemory
Temp and persistent memory allocated by this node.
int64 temp_memory = 2;- Parameters:
value- The tempMemory to set.- Returns:
- This builder for chaining.
-
clearTempMemory
Temp and persistent memory allocated by this node.
int64 temp_memory = 2;- Returns:
- This builder for chaining.
-
getPersistentMemory
public long getPersistentMemory()int64 persistent_memory = 4;- Specified by:
getPersistentMemoryin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Returns:
- The persistentMemory.
-
setPersistentMemory
int64 persistent_memory = 4;- Parameters:
value- The persistentMemory to set.- Returns:
- This builder for chaining.
-
clearPersistentMemory
int64 persistent_memory = 4;- Returns:
- This builder for chaining.
-
getDeviceTempMemory
Deprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. See tensorflow/core/grappler/costs/op_performance_data.proto;l=114int64 device_temp_memory = 3 [deprecated = true];- Specified by:
getDeviceTempMemoryin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Returns:
- The deviceTempMemory.
-
setDeviceTempMemory
Deprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. See tensorflow/core/grappler/costs/op_performance_data.proto;l=114int64 device_temp_memory = 3 [deprecated = true];- Parameters:
value- The deviceTempMemory to set.- Returns:
- This builder for chaining.
-
clearDeviceTempMemory
Deprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. See tensorflow/core/grappler/costs/op_performance_data.proto;l=114int64 device_temp_memory = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
getDevicePersistentMemory
Deprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. See tensorflow/core/grappler/costs/op_performance_data.proto;l=115int64 device_persistent_memory = 5 [deprecated = true];- Specified by:
getDevicePersistentMemoryin interfaceOpPerformanceData.OpPerformance.OpMemoryOrBuilder- Returns:
- The devicePersistentMemory.
-
setDevicePersistentMemory
@Deprecated public OpPerformanceData.OpPerformance.OpMemory.Builder setDevicePersistentMemory(long value) Deprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. See tensorflow/core/grappler/costs/op_performance_data.proto;l=115int64 device_persistent_memory = 5 [deprecated = true];- Parameters:
value- The devicePersistentMemory to set.- Returns:
- This builder for chaining.
-
clearDevicePersistentMemory
Deprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. See tensorflow/core/grappler/costs/op_performance_data.proto;l=115int64 device_persistent_memory = 5 [deprecated = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final OpPerformanceData.OpPerformance.OpMemory.Builder setUnknownFields(UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
mergeUnknownFields
public final OpPerformanceData.OpPerformance.OpMemory.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-