Skip to content

dnn_ProfilingMode

Deep neural networksclassOpenCV 5.0.0
import { dnn_ProfilingMode } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSdnn_ProfilingMode
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Native enum entries for dnn profiling mode. Pass an entry to enum-typed arguments or its .value to numeric arguments.

Constructors and members

static DNN_PROFILE_NONE

Don't do any profiling

DNN_PROFILE_NONE: dnn_ProfilingModeValue<0>,

static DNN_PROFILE_SUMMARY

Collect the summary statistics by layer type (e.g. all "Conv2D" or all "Add") and print it in the end, sorted by the execution time (most expensive layers first). Note that it may introduce some overhead and cause slowdown, especially in the case of non-CPU backends.

DNN_PROFILE_SUMMARY: dnn_ProfilingModeValue<1>,

static DNN_PROFILE_DETAILED

Print execution time of each single layer. Note that it may introduce some overhead and cause slowdown, especially in the case of non-CPU backends.

DNN_PROFILE_DETAILED: dnn_ProfilingModeValue<2>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.