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.GeneratedMessage.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 GeneratedMessage.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.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.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 GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) setDevicePersistentMemory(long value) Deprecated.tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated.setDeviceTempMemory(long value) Deprecated.tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated.setOutputMemory(int index, long value) The output information may have memory usage and output shapes.setPersistentMemory(long value) int64 persistent_memory = 4;setTempMemory(long value) Temp and persistent memory allocated by this node.Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<OpPerformanceData.OpPerformance.OpMemory.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.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
-
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 classGeneratedMessage.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.
-