Skip to main content

TPU

Create a TPU device instance.

def TPU(
device: TPUType,
partition: V5PParts | V6EParts | None = None
) - > Device

Create a TPU device instance.

Parameters

NameTypeDescription
deviceTPUTypeThe type of the TPU device to create, such as "V5P" or "V6E".
partition`V5PPartsV6EParts

Returns

TypeDescription
DeviceDevice instance.