get_platform

Contents

get_platform#

class brainpy.math.get_platform[source]#

Get the computing platform.

Returns:

platform – Either ‘cpu’, ‘gpu’ or ‘tpu’.

Return type:

str