Reference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::AcceleratorConfig.
An accelerator configuration for a VM instance
Definition of a hardware accelerator. Note that there is no check on type
and core_count combinations. TPUs are not supported.
See GPUs on Compute
Engine to find a
valid combination.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#core_count
defcore_count()->::Integer
Returns
(::Integer) — Optional. Count of cores of this accelerator.
#core_count=
defcore_count=(value)->::Integer
Parameter
value (::Integer) — Optional. Count of cores of this accelerator.
Returns
(::Integer) — Optional. Count of cores of this accelerator.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Notebooks V2 API - Class Google::Cloud::Notebooks::V2::AcceleratorConfig (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-notebooks-v2/1.0.1/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-notebooks-v2/0.6.0/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [0.5.0](/ruby/docs/reference/google-cloud-notebooks-v2/0.5.0/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [0.4.2](/ruby/docs/reference/google-cloud-notebooks-v2/0.4.2/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [0.3.2](/ruby/docs/reference/google-cloud-notebooks-v2/0.3.2/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-notebooks-v2/0.2.0/Google-Cloud-Notebooks-V2-AcceleratorConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-notebooks-v2/0.1.0/Google-Cloud-Notebooks-V2-AcceleratorConfig) \nReference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::AcceleratorConfig.\n\nAn accelerator configuration for a VM instance\nDefinition of a hardware accelerator. Note that there is no check on `type`\nand `core_count` combinations. TPUs are not supported.\nSee [GPUs on Compute\nEngine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a\nvalid combination. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #core_count\n\n def core_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. Count of cores of this accelerator.\n\n### #core_count=\n\n def core_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. Count of cores of this accelerator. \n**Returns**\n\n- (::Integer) --- Optional. Count of cores of this accelerator.\n\n### #type\n\n def type() -\u003e ::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType\n\n**Returns**\n\n- ([::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType](./Google-Cloud-Notebooks-V2-AcceleratorConfig-AcceleratorType)) --- Optional. Type of this accelerator.\n\n### #type=\n\n def type=(value) -\u003e ::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType](./Google-Cloud-Notebooks-V2-AcceleratorConfig-AcceleratorType)) --- Optional. Type of this accelerator. \n**Returns**\n\n- ([::Google::Cloud::Notebooks::V2::AcceleratorConfig::AcceleratorType](./Google-Cloud-Notebooks-V2-AcceleratorConfig-AcceleratorType)) --- Optional. Type of this accelerator."]]