enumerate_devices()

Info Value
Package mvnc
Module mvncapi
Version 2.0
See also Device

Overview

This function returns a list of identifiers for all neural compute devices present in the system. These identifiers can be used to create an instance of the Device class.

Syntax

device_list = mvncapi.enumerate_devices()

Parameters

None.

Return

list(ctypes.c_void_p)

A list of identifiers for neural compute devices present in the system.

Notes

None.

Example

from mvnc import mvncapi

device_list = mvncapi.enumerate_devices()

if not device_list:
    print("Error - No neural compute devices detected.")
else:
    print(len(device_list), "neural compute devices found!")