Struct BuildConfig

Struct Documentation

struct BuildConfig

Public Members

BuildMode buildMode = BuildMode::SERIAL

Specify build in serial mode or parallel mode.

zdl::DlContainer::IDlContainer *container

The opened container ptr.

zdl::DlSystem::StringList outputBufferNames

Specify the output layer name.

zdl::DlSystem::StringList outputTensors

Specify the output layer name.

RuntimeConfigList runtimeConfigList

The runtime config list for PSNPE,.

See also

RuntimeConfig

size_t inputThreadNumbers = 1

Specify the number of threads used in the execution phase to process input data, only used in inputOutputAsync mode.

size_t outputThreadNumbers = 1

Specify the number of threads used in the execution phase to process output data, only used in inputOutputAsync and outputAsync mode.

OutputAsyncCallbackFunc outputCallback

The callback to deal with output data ,only used in outputAsync mode.

InputOutputAsyncCallbackFunc inputOutputCallback

The callback to deal with output data ,only used in inputOutputAsync mode.

InputOutputAsyncInputCallback inputOutputInputCallback

The callback to deal with input data ,only used in inputOutputAsync mode.

InputOutputTransmissionMode inputOutputTransmissionMode = InputOutputTransmissionMode::sync

Specify execution mode.

zdl::DlSystem::ProfilingLevel_t profilingLevel = zdl::DlSystem::ProfilingLevel_t::OFF

Specify profiling level for Diaglog.

uint64_t encode[2] = {0, 0}
bool enableInitCache = false
bool acceleratedInit = false
std::string platformOptions
std::string diaglogOutputDir = "./diaglogs/"

Specify a diaglog output directory to save the generated Diaglog files.

size_t callbackID = {}