When device_type is not provided, devices of the default type are
returned. This function nevers return a mix of device types, for instance
GPUs and CPUs.
Args
device_type
string, one of "cpu", "gpu" or "tpu". Defaults to
"gpu" or "tpu" if available when device_type is not provided.
Otherwise returns the "cpu" devices.
Return
List of string, the devices that are available for distributed
computation. Each device is formatted as "device_type:id", for instance
"gpu:1" or "cpu:0".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-04 UTC."],[],[]]