npu_data.h Source File#
|
SDK qb Runtime Library v1.4
MCS001-EN
|
npu_data.h
Go to the documentation of this file.
Represents an accelerator, i.e., an NPU, used for executing models.
Definition acc.h:40
Handle to a specific variant of a loaded model.
Definition model_variant_handle.h:35
StatusCode launch(Accelerator &acc)
Uploads the data to the NPU memory associated with the given accelerator.
std::string deviceName() const
Returns the hardware name (device type) of the accelerator the data resides on.
int devNo() const
Returns the device number of the accelerator the data resides on.
T * data(StatusCode &sc) const
Returns a typed pointer to the host (CPU) data.
Definition npu_data.h:97
Generated by