Reference documentation and code samples for the Google Cloud Notebooks V2 Client class AcceleratorConfig.
An accelerator configuration for a VM instance
Definition of a hardware accelerator. Note that there is no check ontypeandcore_countcombinations. TPUs are not supported.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Notebooks V2 Client - Class AcceleratorConfig (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-notebooks/latest/V2.AcceleratorConfig)\n- [1.0.4](/php/docs/reference/cloud-notebooks/1.0.4/V2.AcceleratorConfig)\n- [0.7.5](/php/docs/reference/cloud-notebooks/0.7.5/V2.AcceleratorConfig)\n- [0.6.2](/php/docs/reference/cloud-notebooks/0.6.2/V2.AcceleratorConfig)\n- [0.5.0](/php/docs/reference/cloud-notebooks/0.5.0/V2.AcceleratorConfig)\n- [0.4.1](/php/docs/reference/cloud-notebooks/0.4.1/V2.AcceleratorConfig)\n- [0.3.6](/php/docs/reference/cloud-notebooks/0.3.6/V2.AcceleratorConfig) \nReference documentation and code samples for the Google Cloud Notebooks V2 Client class 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.\n\nSee [GPUs on Compute\nEngine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a\nvalid combination.\n\nGenerated from protobuf message `google.cloud.notebooks.v2.AcceleratorConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Notebooks \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nOptional. Type of this accelerator.\n\n### setType\n\nOptional. Type of this accelerator.\n\n### getCoreCount\n\nOptional. Count of cores of this accelerator.\n\n### setCoreCount\n\nOptional. Count of cores of this accelerator."]]