class
#include <backend.hpp>
Backend Class for handling QNN backends.
Contents
Public static functions
- static void logCallback(const char* fmtStr, QnnLog_Level_t level, uint64_t timestamp, va_list argp)
- Static callback function for logging.
Constructors, destructors, conversion operators
Public functions
- auto operator=(const Backend&) -> Backend & deleted
- auto operator=(Backend&&) -> Backend & deleted
- auto getCreationStatus() const -> STATUS
- Get the status of backend creation.
- auto getHandle() -> auto &
- Get the backend handle.
- auto getDeviceHandle() -> auto &
- Returns a reference to the device handle.
- auto getInterface() -> auto &
- Get the QNN interface.
- auto getDelegate()
- Get the delegate type for the backend.
Function documentation
static void edge:: qnn:: Backend:: logCallback(const char* fmtStr,
QnnLog_Level_t level,
uint64_t timestamp,
va_list argp)
Static callback function for logging.
Parameters | |
---|---|
fmtStr | The format string for the log message. |
level | The log level. |
timestamp | The timestamp of the log message. |
argp | Additional arguments for the log message. |
auto edge:: qnn:: Backend:: getCreationStatus() const -> STATUS
Get the status of backend creation.
Returns | The status of backend creation |
---|
Verify that the backend was created successfully
auto edge:: qnn:: Backend:: getHandle() -> auto &
Get the backend handle.
Returns | Reference to the backend handle. |
---|
auto edge:: qnn:: Backend:: getDeviceHandle() -> auto &
Returns a reference to the device handle.
Returns | Reference to the device handle. |
---|
This function returns a reference to the device handle, allowing access to the underlying device handle object.
auto edge:: qnn:: Backend:: getInterface() -> auto &
Get the QNN interface.
Returns | Reference to the QNN interface. |
---|
auto edge:: qnn:: Backend:: getDelegate()
Get the delegate type for the backend.
Returns | The delegate type. |
---|