type.h Source File#
|
Runtime Library v0.30
Mobilint SDK qb
|
type.h
Go to the documentation of this file.
bool setGlobal8CoreMode()
Sets the model to use global8-core mode for inference.
bool setGlobalCoreMode(std::vector< Cluster > clusters)
bool setGlobal4CoreMode(std::vector< Cluster > clusters)
Sets the model to use global4-core mode for inference with a specified set of NPU clusters.
bool getAsyncPipelineEnabled() const
Returns whether the asynchronous pipeline is enabled in this configuration.
Definition type.h:420
bool setMultiCoreMode(std::vector< Cluster > clusters)
Sets the model to use multi-core mode for batch inference.
bool include(Cluster cluster)
bool excludeAllCores()
bool exclude(Core core)
void setAsyncPipelineEnabled(bool enable)
Enables or disables the asynchronous pipeline required for asynchronous inference.
bool exclude(Cluster cluster, Core core)
bool includeAllCores()
ModelConfig(int num_cores)
bool setSingleCoreMode(int num_cores)
Sets the model to use single-core mode for inference with a specified number of local cores.
ModelConfig()
Default constructor. This default-constructed object is initially set to single-core mode with all NP...
const std::vector< CoreId > & getCoreIds() const
Returns the list of NPU CoreIds to be used for model inference.
Definition type.h:396
std::vector< uint64_t > finish_latencies
Definition type.h:458
bool exclude(Cluster cluster)
bool setSingleCoreMode(std::vector< CoreId > core_ids)
Sets the model to use single-core mode for inference with a specific set of NPU local cores.
CoreAllocationPolicy getCoreAllocationPolicy() const
Gets the core allocation policy to be applied to the model.
Definition type.h:346
bool forceSingleNPUBundle(int npu_bundle_index)
Forces the use of a specific NPU bundle.
bool setManualMode()
int getForcedNPUBundleIndex() const
Retrieves the index of the forced NPU bundle.
Definition type.h:384
bool include(Core core)
bool setAutoMode(int num_cores=1)
bool include(Cluster cluster, Core core)
MACCEL_EXPORT bool startTracingEvents(const char *path)
Starts event tracing and prepares to save the trace log to a specified file.
MACCEL_EXPORT std::string getModelSummary(const std::string &mxq_path)
Generates a structured summary of the specified MXQ model.
MACCEL_EXPORT void stopTracingEvents()
Stops event tracing and writes the recorded trace log.
uint32_t original_size() const
Returns the total size of the original input/output.
Definition type.h:226
uint32_t reshaped_size() const
Returns the total size of the reshaped input/output.
Definition type.h:234
bool operator<(const CoreId &rhs) const
Compares two CoreId objects for ordering.
Definition type.h:167
bool operator==(const CoreId &rhs) const
Checks if two CoreId objects are equal.
Definition type.h:157
Generated by