Google Cloud Tpu V2 Client - Class AcceleratorConfig (1.4.7)

Reference documentation and code samples for the Google Cloud Tpu V2 Client class AcceleratorConfig.

A TPU accelerator configuration.

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

Namespace

Google \ Cloud \ Tpu \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Required. Type of TPU.

↳ topology string

Required. Topology of TPU in chips.

getType

Required. Type of TPU.

Returns
Type Description
int

setType

Required. Type of TPU.

Parameter
Name Description
var int
Returns
Type Description
$this

getTopology

Required. Topology of TPU in chips.

Returns
Type Description
string

setTopology

Required. Topology of TPU in chips.

Parameter
Name Description
var string
Returns
Type Description
$this