Class GPUOptions.Experimental.VirtualDevices.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.VirtualDevices.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.VirtualDevices.Builder>
      • getDefaultInstanceForType

        public GPUOptions.Experimental.VirtualDevices getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GPUOptions.Experimental.VirtualDevices build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GPUOptions.Experimental.VirtualDevices buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.VirtualDevices.Builder>
      • mergeFrom

        public GPUOptions.Experimental.VirtualDevices.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GPUOptions.Experimental.VirtualDevices.Builder>
        Throws:
        java.io.IOException
      • getMemoryLimitMbList

        public java.util.List<java.lang.Float> getMemoryLimitMbList()
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Specified by:
        getMemoryLimitMbList in interface GPUOptions.Experimental.VirtualDevicesOrBuilder
        Returns:
        A list containing the memoryLimitMb.
      • getMemoryLimitMbCount

        public int getMemoryLimitMbCount()
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Specified by:
        getMemoryLimitMbCount in interface GPUOptions.Experimental.VirtualDevicesOrBuilder
        Returns:
        The count of memoryLimitMb.
      • getMemoryLimitMb

        public float getMemoryLimitMb​(int index)
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Specified by:
        getMemoryLimitMb in interface GPUOptions.Experimental.VirtualDevicesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The memoryLimitMb at the given index.
      • setMemoryLimitMb

        public GPUOptions.Experimental.VirtualDevices.Builder setMemoryLimitMb​(int index,
                                                                               float value)
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Parameters:
        index - The index to set the value at.
        value - The memoryLimitMb to set.
        Returns:
        This builder for chaining.
      • addMemoryLimitMb

        public GPUOptions.Experimental.VirtualDevices.Builder addMemoryLimitMb​(float value)
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Parameters:
        value - The memoryLimitMb to add.
        Returns:
        This builder for chaining.
      • addAllMemoryLimitMb

        public GPUOptions.Experimental.VirtualDevices.Builder addAllMemoryLimitMb​(java.lang.Iterable<? extends java.lang.Float> values)
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Parameters:
        values - The memoryLimitMb to add.
        Returns:
        This builder for chaining.
      • clearMemoryLimitMb

        public GPUOptions.Experimental.VirtualDevices.Builder clearMemoryLimitMb()
         Per "virtual" device memory limit, in MB. The number of elements in
         the list is the number of virtual devices to create on the
         corresponding visible GPU (see "virtual_devices" below).
         If empty, it will create single virtual device taking all available
         memory from the device.
         For the concept of "visible" and "virtual" GPU, see the comments for
         "visible_device_list" above for more information.
         
        repeated float memory_limit_mb = 1;
        Returns:
        This builder for chaining.