qbruntime.accelerator.Accelerator Class Reference

qbruntime.accelerator.Accelerator Class Reference#

SDK qb Runtime Library: qbruntime.accelerator.Accelerator Class Reference
SDK qb Runtime Library v1.0
MCS001-
qbruntime.accelerator.Accelerator Class Reference

Represents an accelerator, i.e., an NPU, used for executing models. More...

Public Member Functions

 __init__ (self, int dev_no=0)
 Creates an Accelerator object for a specific device number.

Protected Attributes

 _accelerator = _cQbRuntime.Accelerator(dev_no)

Detailed Description

Represents an accelerator, i.e., an NPU, used for executing models.

Definition at line 12 of file accelerator.py.

Constructor & Destructor Documentation

◆ __init__()

qbruntime.accelerator.Accelerator.__init__ ( self,
int dev_no = 0 )

Creates an Accelerator object for a specific device number.

The dev_no parameter represents the device number. For example, on Linux, if an ARIES NPU is attached as /dev/aries0, the device number is 0.

Parameters
dev_noThe device number to associate with the Accelerator.

Definition at line 15 of file accelerator.py.

Member Data Documentation

◆ _accelerator

qbruntime.accelerator.Accelerator._accelerator = _cQbRuntime.Accelerator(dev_no)
protected

Definition at line 24 of file accelerator.py.


The documentation for this class was generated from the following file: