Google Cloud Notebooks V2 Client - Class AcceleratorConfig (0.7.0)

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 on type and core_count combinations. TPUs are not supported.

See GPUs on Compute Engine to find a valid combination.

Generated from protobuf message google.cloud.notebooks.v2.AcceleratorConfig

Namespace

Google \ Cloud \ Notebooks \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

Optional. Type of this accelerator.

↳ core_count int|string

Optional. Count of cores of this accelerator.

getType

Optional. Type of this accelerator.

Returns
TypeDescription
int

setType

Optional. Type of this accelerator.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCoreCount

Optional. Count of cores of this accelerator.

Returns
TypeDescription
int|string

setCoreCount

Optional. Count of cores of this accelerator.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this