Class MemoryStats.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, MemoryStatsOrBuilder
    Enclosing class:
    MemoryStats

    public static final class MemoryStats.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
    implements MemoryStatsOrBuilder
     For memory tracking.
     
    Protobuf type tensorflow.MemoryStats
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • clear

        public MemoryStats.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • getDefaultInstanceForType

        public MemoryStats getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public MemoryStats build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public MemoryStats buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public MemoryStats.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • setField

        public MemoryStats.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • clearField

        public MemoryStats.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • clearOneof

        public MemoryStats.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • setRepeatedField

        public MemoryStats.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • addRepeatedField

        public MemoryStats.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • mergeFrom

        public MemoryStats.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<MemoryStats.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • mergeFrom

        public MemoryStats.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                             org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<MemoryStats.Builder>
        Throws:
        IOException
      • setTempMemorySize

        public MemoryStats.Builder setTempMemorySize​(long value)
        int64 temp_memory_size = 1;
        Parameters:
        value - The tempMemorySize to set.
        Returns:
        This builder for chaining.
      • clearTempMemorySize

        public MemoryStats.Builder clearTempMemorySize()
        int64 temp_memory_size = 1;
        Returns:
        This builder for chaining.
      • setPersistentMemorySize

        public MemoryStats.Builder setPersistentMemorySize​(long value)
        int64 persistent_memory_size = 3;
        Parameters:
        value - The persistentMemorySize to set.
        Returns:
        This builder for chaining.
      • clearPersistentMemorySize

        public MemoryStats.Builder clearPersistentMemorySize()
        int64 persistent_memory_size = 3;
        Returns:
        This builder for chaining.
      • getPersistentTensorAllocIdsCount

        public int getPersistentTensorAllocIdsCount()
        repeated int64 persistent_tensor_alloc_ids = 5;
        Specified by:
        getPersistentTensorAllocIdsCount in interface MemoryStatsOrBuilder
        Returns:
        The count of persistentTensorAllocIds.
      • getPersistentTensorAllocIds

        public long getPersistentTensorAllocIds​(int index)
        repeated int64 persistent_tensor_alloc_ids = 5;
        Specified by:
        getPersistentTensorAllocIds in interface MemoryStatsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The persistentTensorAllocIds at the given index.
      • setPersistentTensorAllocIds

        public MemoryStats.Builder setPersistentTensorAllocIds​(int index,
                                                               long value)
        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

        public MemoryStats.Builder addPersistentTensorAllocIds​(long value)
        repeated int64 persistent_tensor_alloc_ids = 5;
        Parameters:
        value - The persistentTensorAllocIds to add.
        Returns:
        This builder for chaining.
      • addAllPersistentTensorAllocIds

        public MemoryStats.Builder addAllPersistentTensorAllocIds​(Iterable<? extends Long> values)
        repeated int64 persistent_tensor_alloc_ids = 5;
        Parameters:
        values - The persistentTensorAllocIds to add.
        Returns:
        This builder for chaining.
      • clearPersistentTensorAllocIds

        public MemoryStats.Builder clearPersistentTensorAllocIds()
        repeated int64 persistent_tensor_alloc_ids = 5;
        Returns:
        This builder for chaining.
      • getDeviceTempMemorySize

        @Deprecated
        public long getDeviceTempMemorySize()
        Deprecated.
        tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=46
        int64 device_temp_memory_size = 2 [deprecated = true];
        Specified by:
        getDeviceTempMemorySize in interface MemoryStatsOrBuilder
        Returns:
        The deviceTempMemorySize.
      • setDeviceTempMemorySize

        @Deprecated
        public MemoryStats.Builder setDeviceTempMemorySize​(long value)
        Deprecated.
        tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=46
        int64 device_temp_memory_size = 2 [deprecated = true];
        Parameters:
        value - The deviceTempMemorySize to set.
        Returns:
        This builder for chaining.
      • clearDeviceTempMemorySize

        @Deprecated
        public MemoryStats.Builder clearDeviceTempMemorySize()
        Deprecated.
        tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=46
        int64 device_temp_memory_size = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • getDevicePersistentMemorySize

        @Deprecated
        public long getDevicePersistentMemorySize()
        Deprecated.
        tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=47
        int64 device_persistent_memory_size = 4 [deprecated = true];
        Specified by:
        getDevicePersistentMemorySize in interface MemoryStatsOrBuilder
        Returns:
        The devicePersistentMemorySize.
      • setDevicePersistentMemorySize

        @Deprecated
        public MemoryStats.Builder setDevicePersistentMemorySize​(long value)
        Deprecated.
        tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=47
        int64 device_persistent_memory_size = 4 [deprecated = true];
        Parameters:
        value - The devicePersistentMemorySize to set.
        Returns:
        This builder for chaining.
      • clearDevicePersistentMemorySize

        @Deprecated
        public MemoryStats.Builder clearDevicePersistentMemorySize()
        Deprecated.
        tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=47
        int64 device_persistent_memory_size = 4 [deprecated = true];
        Returns:
        This builder for chaining.
      • getDevicePersistentTensorAllocIdsList

        @Deprecated
        public List<Long> getDevicePersistentTensorAllocIdsList()
        Deprecated.
        tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
        repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
        Specified by:
        getDevicePersistentTensorAllocIdsList in interface MemoryStatsOrBuilder
        Returns:
        A list containing the devicePersistentTensorAllocIds.
      • getDevicePersistentTensorAllocIdsCount

        @Deprecated
        public int getDevicePersistentTensorAllocIdsCount()
        Deprecated.
        tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
        repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
        Specified by:
        getDevicePersistentTensorAllocIdsCount in interface MemoryStatsOrBuilder
        Returns:
        The count of devicePersistentTensorAllocIds.
      • getDevicePersistentTensorAllocIds

        @Deprecated
        public long getDevicePersistentTensorAllocIds​(int index)
        Deprecated.
        tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
        repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
        Specified by:
        getDevicePersistentTensorAllocIds in interface MemoryStatsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The devicePersistentTensorAllocIds at the given index.
      • setDevicePersistentTensorAllocIds

        @Deprecated
        public MemoryStats.Builder setDevicePersistentTensorAllocIds​(int index,
                                                                     long value)
        Deprecated.
        tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
        repeated 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
        public MemoryStats.Builder addDevicePersistentTensorAllocIds​(long value)
        Deprecated.
        tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
        repeated 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=48
        repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
        Parameters:
        values - The devicePersistentTensorAllocIds to add.
        Returns:
        This builder for chaining.
      • clearDevicePersistentTensorAllocIds

        @Deprecated
        public MemoryStats.Builder clearDevicePersistentTensorAllocIds()
        Deprecated.
        tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
        repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MemoryStats.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>
      • mergeUnknownFields

        public final MemoryStats.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder>