GPUOptions.Experimental.VirtualDevicesOrBuilder
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सार्वजनिक तरीके
अमूर्त फ्लोट | |
सार इंट | |
सार सूची<फ्लोट> | |
सार इंट | |
सार इंट | |
सार सूची<पूर्णांक> | |
सार्वजनिक तरीके
सार्वजनिक सार फ्लोट getMemoryLimitMb (int सूचकांक)
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;
सार्वजनिक सार 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;
सार्वजनिक सार सूची<फ्लोट> 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;
सार्वजनिक सार पूर्णांक getPriority (पूर्णांक सूचकांक)
Priority values to use with the virtual devices. Use the cuda function
cudaDeviceGetStreamPriorityRange to query for valid range of values for
priority.
On a P4000 GPU with cuda 10.1, the priority range reported was 0 for
least priority and -1 for greatest priority.
If this field is not specified, then the virtual devices will be
created with the default. If this field has values set, then the size
of this must match with the above memory_limit_mb.
repeated int32 priority = 2;
सार्वजनिक सार int getPriorityCount ()
Priority values to use with the virtual devices. Use the cuda function
cudaDeviceGetStreamPriorityRange to query for valid range of values for
priority.
On a P4000 GPU with cuda 10.1, the priority range reported was 0 for
least priority and -1 for greatest priority.
If this field is not specified, then the virtual devices will be
created with the default. If this field has values set, then the size
of this must match with the above memory_limit_mb.
repeated int32 priority = 2;
सार्वजनिक सार सूची <पूर्णांक> getPriorityList ()
Priority values to use with the virtual devices. Use the cuda function
cudaDeviceGetStreamPriorityRange to query for valid range of values for
priority.
On a P4000 GPU with cuda 10.1, the priority range reported was 0 for
least priority and -1 for greatest priority.
If this field is not specified, then the virtual devices will be
created with the default. If this field has values set, then the size
of this must match with the above memory_limit_mb.
repeated int32 priority = 2;
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# GPUOptions.Experimental.VirtualDevicesOrBuilder\n\npublic static interface **GPUOptions.Experimental.VirtualDevicesOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [GPUOptions.Experimental.VirtualDevices](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevices), [GPUOptions.Experimental.VirtualDevices.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevices.Builder) |----------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------| | [GPUOptions.Experimental.VirtualDevices](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevices) | ``` Configuration for breaking down a visible GPU into multiple \"virtual\" devices. ``` | | [GPUOptions.Experimental.VirtualDevices.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevices.Builder) | ``` Configuration for breaking down a visible GPU into multiple \"virtual\" devices. ``` | |||\n\n### Public Methods\n\n|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract float | [getMemoryLimitMb](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevicesOrBuilder#getMemoryLimitMb(int))(int index) ``` Per \"virtual\" device memory limit, in MB. ``` |\n| abstract int | [getMemoryLimitMbCount](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevicesOrBuilder#getMemoryLimitMbCount())() ``` Per \"virtual\" device memory limit, in MB. ``` |\n| abstract List\\\u003cFloat\\\u003e | [getMemoryLimitMbList](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevicesOrBuilder#getMemoryLimitMbList())() ``` Per \"virtual\" device memory limit, in MB. ``` |\n| abstract int | [getPriority](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevicesOrBuilder#getPriority(int))(int index) ``` Priority values to use with the virtual devices. ``` |\n| abstract int | [getPriorityCount](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevicesOrBuilder#getPriorityCount())() ``` Priority values to use with the virtual devices. ``` |\n| abstract List\\\u003cInteger\\\u003e | [getPriorityList](/jvm/api_docs/java/org/tensorflow/proto/framework/GPUOptions.Experimental.VirtualDevicesOrBuilder#getPriorityList())() ``` Priority values to use with the virtual devices. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract float\n**getMemoryLimitMb**\n(int index)\n\n\u003cbr /\u003e\n\n```\n Per \"virtual\" device memory limit, in MB. The number of elements in\n the list is the number of virtual devices to create on the\n corresponding visible GPU (see \"virtual_devices\" below).\n If empty, it will create single virtual device taking all available\n memory from the device.\n For the concept of \"visible\" and \"virtual\" GPU, see the comments for\n \"visible_device_list\" above for more information.\n \n```\n`repeated float memory_limit_mb = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getMemoryLimitMbCount**\n()\n\n\u003cbr /\u003e\n\n```\n Per \"virtual\" device memory limit, in MB. The number of elements in\n the list is the number of virtual devices to create on the\n corresponding visible GPU (see \"virtual_devices\" below).\n If empty, it will create single virtual device taking all available\n memory from the device.\n For the concept of \"visible\" and \"virtual\" GPU, see the comments for\n \"visible_device_list\" above for more information.\n \n```\n`repeated float memory_limit_mb = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract List\\\u003cFloat\\\u003e\n**getMemoryLimitMbList**\n()\n\n\u003cbr /\u003e\n\n```\n Per \"virtual\" device memory limit, in MB. The number of elements in\n the list is the number of virtual devices to create on the\n corresponding visible GPU (see \"virtual_devices\" below).\n If empty, it will create single virtual device taking all available\n memory from the device.\n For the concept of \"visible\" and \"virtual\" GPU, see the comments for\n \"visible_device_list\" above for more information.\n \n```\n`repeated float memory_limit_mb = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getPriority**\n(int index)\n\n\u003cbr /\u003e\n\n```\n Priority values to use with the virtual devices. Use the cuda function\n cudaDeviceGetStreamPriorityRange to query for valid range of values for\n priority.\n On a P4000 GPU with cuda 10.1, the priority range reported was 0 for\n least priority and -1 for greatest priority.\n If this field is not specified, then the virtual devices will be\n created with the default. If this field has values set, then the size\n of this must match with the above memory_limit_mb.\n \n```\n`repeated int32 priority = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getPriorityCount**\n()\n\n\u003cbr /\u003e\n\n```\n Priority values to use with the virtual devices. Use the cuda function\n cudaDeviceGetStreamPriorityRange to query for valid range of values for\n priority.\n On a P4000 GPU with cuda 10.1, the priority range reported was 0 for\n least priority and -1 for greatest priority.\n If this field is not specified, then the virtual devices will be\n created with the default. If this field has values set, then the size\n of this must match with the above memory_limit_mb.\n \n```\n`repeated int32 priority = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract List\\\u003cInteger\\\u003e\n**getPriorityList**\n()\n\n\u003cbr /\u003e\n\n```\n Priority values to use with the virtual devices. Use the cuda function\n cudaDeviceGetStreamPriorityRange to query for valid range of values for\n priority.\n On a P4000 GPU with cuda 10.1, the priority range reported was 0 for\n least priority and -1 for greatest priority.\n If this field is not specified, then the virtual devices will be\n created with the default. If this field has values set, then the size\n of this must match with the above memory_limit_mb.\n \n```\n`repeated int32 priority = 2;`\n\n\u003cbr /\u003e"]]