Google Cloud Tpu V2 Client - Class AcceleratorConfig (1.1.1)

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
NameDescription
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
TypeDescription
int

setType

Required. Type of TPU.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTopology

Required. Topology of TPU in chips.

Returns
TypeDescription
string

setTopology

Required. Topology of TPU in chips.

Parameter
NameDescription
var string
Returns
TypeDescription
$this