Skip to content

Instantly share code, notes, and snippets.

@pmundt
Created July 7, 2020 18:51
Show Gist options
  • Save pmundt/2b23b98dd63f99d876b30e755222ae64 to your computer and use it in GitHub Desktop.
Save pmundt/2b23b98dd63f99d876b30e755222ae64 to your computer and use it in GitHub Desktop.
EdgeTPU Device Query Example
from edgetpu.basic import edgetpu_utils
version = edgetpu_utils.GetRuntimeVersion()
print(version)
all_edgetpu_paths = edgetpu_utils.ListEdgeTpuPaths(edgetpu_utils.EDGE_TPU_STATE_NONE)
print('Available EdgeTPU Device(s):')
print(''.join(all_edgetpu_paths))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment