Google Cloud Notebooks V1beta1 Client - Class AcceleratorConfig (0.4.1)

Reference documentation and code samples for the Google Cloud Notebooks V1beta1 Client class AcceleratorConfig.

Definition of a hardware accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

Generated from protobuf message google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig

Namespace

Google \ Cloud \ Notebooks \ V1beta1 \ Instance

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

Type of this accelerator.

↳ core_count int|string

Count of cores of this accelerator.

getType

Type of this accelerator.

Returns
TypeDescription
int

setType

Type of this accelerator.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCoreCount

Count of cores of this accelerator.

Returns
TypeDescription
int|string

setCoreCount

Count of cores of this accelerator.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this