Package org.tensorflow.framework
Class MemoryStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MemoryStats.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
org.tensorflow.framework.MemoryStats.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,MemoryStatsOrBuilder
- Enclosing class:
MemoryStats
public static final class MemoryStats.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
implements MemoryStatsOrBuilder
For memory tracking.Protobuf type
tensorflow.MemoryStats-
Method Summary
Modifier and TypeMethodDescriptionaddAllDevicePersistentTensorAllocIds(Iterable<? extends Long> values) Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.addAllPersistentTensorAllocIds(Iterable<? extends Long> values) repeated int64 persistent_tensor_alloc_ids = 5;addDevicePersistentTensorAllocIds(long value) Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.addPersistentTensorAllocIds(long value) repeated int64 persistent_tensor_alloc_ids = 5;addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Deprecated.tensorflow.MemoryStats.device_persistent_memory_size is deprecated.Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.Deprecated.tensorflow.MemoryStats.device_temp_memory_size is deprecated.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) int64 persistent_memory_size = 3;repeated int64 persistent_tensor_alloc_ids = 5;int64 temp_memory_size = 1;clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongDeprecated.tensorflow.MemoryStats.device_persistent_memory_size is deprecated.longgetDevicePersistentTensorAllocIds(int index) Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.intDeprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.longDeprecated.tensorflow.MemoryStats.device_temp_memory_size is deprecated.longint64 persistent_memory_size = 3;longgetPersistentTensorAllocIds(int index) repeated int64 persistent_tensor_alloc_ids = 5;intrepeated int64 persistent_tensor_alloc_ids = 5;repeated int64 persistent_tensor_alloc_ids = 5;longint64 temp_memory_size = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MemoryStats other) final MemoryStats.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDevicePersistentMemorySize(long value) Deprecated.tensorflow.MemoryStats.device_persistent_memory_size is deprecated.setDevicePersistentTensorAllocIds(int index, long value) Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated.setDeviceTempMemorySize(long value) Deprecated.tensorflow.MemoryStats.device_temp_memory_size is deprecated.setPersistentMemorySize(long value) int64 persistent_memory_size = 3;setPersistentTensorAllocIds(int index, long value) repeated int64 persistent_tensor_alloc_ids = 5;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTempMemorySize(long value) int64 temp_memory_size = 1;final MemoryStats.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
setField
public MemoryStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
setRepeatedField
public MemoryStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
addRepeatedField
public MemoryStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MemoryStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
mergeFrom
public MemoryStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MemoryStats.Builder>- Throws:
IOException
-
getTempMemorySize
public long getTempMemorySize()int64 temp_memory_size = 1;- Specified by:
getTempMemorySizein interfaceMemoryStatsOrBuilder- Returns:
- The tempMemorySize.
-
setTempMemorySize
int64 temp_memory_size = 1;- Parameters:
value- The tempMemorySize to set.- Returns:
- This builder for chaining.
-
clearTempMemorySize
int64 temp_memory_size = 1;- Returns:
- This builder for chaining.
-
getPersistentMemorySize
public long getPersistentMemorySize()int64 persistent_memory_size = 3;- Specified by:
getPersistentMemorySizein interfaceMemoryStatsOrBuilder- Returns:
- The persistentMemorySize.
-
setPersistentMemorySize
int64 persistent_memory_size = 3;- Parameters:
value- The persistentMemorySize to set.- Returns:
- This builder for chaining.
-
clearPersistentMemorySize
int64 persistent_memory_size = 3;- Returns:
- This builder for chaining.
-
getPersistentTensorAllocIdsList
repeated int64 persistent_tensor_alloc_ids = 5;- Specified by:
getPersistentTensorAllocIdsListin interfaceMemoryStatsOrBuilder- Returns:
- A list containing the persistentTensorAllocIds.
-
getPersistentTensorAllocIdsCount
public int getPersistentTensorAllocIdsCount()repeated int64 persistent_tensor_alloc_ids = 5;- Specified by:
getPersistentTensorAllocIdsCountin interfaceMemoryStatsOrBuilder- Returns:
- The count of persistentTensorAllocIds.
-
getPersistentTensorAllocIds
public long getPersistentTensorAllocIds(int index) repeated int64 persistent_tensor_alloc_ids = 5;- Specified by:
getPersistentTensorAllocIdsin interfaceMemoryStatsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The persistentTensorAllocIds at the given index.
-
setPersistentTensorAllocIds
repeated int64 persistent_tensor_alloc_ids = 5;- Parameters:
index- The index to set the value at.value- The persistentTensorAllocIds to set.- Returns:
- This builder for chaining.
-
addPersistentTensorAllocIds
repeated int64 persistent_tensor_alloc_ids = 5;- Parameters:
value- The persistentTensorAllocIds to add.- Returns:
- This builder for chaining.
-
addAllPersistentTensorAllocIds
repeated int64 persistent_tensor_alloc_ids = 5;- Parameters:
values- The persistentTensorAllocIds to add.- Returns:
- This builder for chaining.
-
clearPersistentTensorAllocIds
repeated int64 persistent_tensor_alloc_ids = 5;- Returns:
- This builder for chaining.
-
getDeviceTempMemorySize
Deprecated.tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=64int64 device_temp_memory_size = 2 [deprecated = true];- Specified by:
getDeviceTempMemorySizein interfaceMemoryStatsOrBuilder- Returns:
- The deviceTempMemorySize.
-
setDeviceTempMemorySize
Deprecated.tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=64int64 device_temp_memory_size = 2 [deprecated = true];- Parameters:
value- The deviceTempMemorySize to set.- Returns:
- This builder for chaining.
-
clearDeviceTempMemorySize
Deprecated.tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=64int64 device_temp_memory_size = 2 [deprecated = true];- Returns:
- This builder for chaining.
-
getDevicePersistentMemorySize
Deprecated.tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=65int64 device_persistent_memory_size = 4 [deprecated = true];- Specified by:
getDevicePersistentMemorySizein interfaceMemoryStatsOrBuilder- Returns:
- The devicePersistentMemorySize.
-
setDevicePersistentMemorySize
Deprecated.tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=65int64 device_persistent_memory_size = 4 [deprecated = true];- Parameters:
value- The devicePersistentMemorySize to set.- Returns:
- This builder for chaining.
-
clearDevicePersistentMemorySize
Deprecated.tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=65int64 device_persistent_memory_size = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
getDevicePersistentTensorAllocIdsList
Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Specified by:
getDevicePersistentTensorAllocIdsListin interfaceMemoryStatsOrBuilder- Returns:
- A list containing the devicePersistentTensorAllocIds.
-
getDevicePersistentTensorAllocIdsCount
Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Specified by:
getDevicePersistentTensorAllocIdsCountin interfaceMemoryStatsOrBuilder- Returns:
- The count of devicePersistentTensorAllocIds.
-
getDevicePersistentTensorAllocIds
Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Specified by:
getDevicePersistentTensorAllocIdsin interfaceMemoryStatsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The devicePersistentTensorAllocIds at the given index.
-
setDevicePersistentTensorAllocIds
Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Parameters:
index- The index to set the value at.value- The devicePersistentTensorAllocIds to set.- Returns:
- This builder for chaining.
-
addDevicePersistentTensorAllocIds
Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Parameters:
value- The devicePersistentTensorAllocIds to add.- Returns:
- This builder for chaining.
-
addAllDevicePersistentTensorAllocIds
@Deprecated public MemoryStats.Builder addAllDevicePersistentTensorAllocIds(Iterable<? extends Long> values) Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Parameters:
values- The devicePersistentTensorAllocIds to add.- Returns:
- This builder for chaining.
-
clearDevicePersistentTensorAllocIds
Deprecated.tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=66repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final MemoryStats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-
mergeUnknownFields
public final MemoryStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
-