Google Cloud Ai Platform V1 Client - Class MachineSpec (0.10.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class MachineSpec.

Specification of a single machine.

Generated from protobuf message google.cloud.aiplatform.v1.MachineSpec

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ machine_type string

Immutable. The type of the machine. See the list of machine types supported for prediction See the list of machine types supported for custom training. For DeployedModel this field is optional, and the default value is n1-standard-2. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.

↳ accelerator_type int

Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.

↳ accelerator_count int

The number of accelerators to attach to the machine.

getMachineType

Immutable. The type of the machine.

See the list of machine types supported for prediction See the list of machine types supported for custom training. For DeployedModel this field is optional, and the default value is n1-standard-2. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.

Generated from protobuf field string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
string

setMachineType

Immutable. The type of the machine.

See the list of machine types supported for prediction See the list of machine types supported for custom training. For DeployedModel this field is optional, and the default value is n1-standard-2. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.

Generated from protobuf field string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
var string
Returns
Type Description
$this

getAcceleratorType

Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.

Generated from protobuf field .google.cloud.aiplatform.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

setAcceleratorType

Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.

Generated from protobuf field .google.cloud.aiplatform.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
var int
Returns
Type Description
$this

getAcceleratorCount

The number of accelerators to attach to the machine.

Generated from protobuf field int32 accelerator_count = 3;

Returns
Type Description
int

setAcceleratorCount

The number of accelerators to attach to the machine.

Generated from protobuf field int32 accelerator_count = 3;

Parameter
Name Description
var int
Returns
Type Description
$this