accelerator.py Source File#
|
SDK qb Runtime Library v1.3
MCS001-EN
|
accelerator.py
Go to the documentation of this file.
Represents an accelerator, i.e., an NPU, used for executing models.
Definition accelerator.py:17
PinnedMemory allocate_pinned_memory(self, Sequence[int] shape, np.dtype dtype)
Allocates an NPU-accessible pinned memory buffer.
Definition accelerator.py:33
__init__(self, int dev_no=0)
Creates an Accelerator object for a specific device number.
Definition accelerator.py:20
An NPU-accessible pinned (physically contiguous) memory buffer.
Definition pinned_memory.py:20
Generated by