Files
opencv-MIRROR/modules
Vadim Pisarevsky fd4491fcb1 dnn: map FP16 input types to FP32 in getFLOPS for the new graph engine
The new graph engine has no FP16 execution path yet and runs FP32 on CPU
regardless of the requested target. When an OpenCL FP16 target is requested,
callers may pass CV_16F input types to Net::getFLOPS(), which then flow through
tryInferShapes() -> Layer::getTypes() and get rejected (CV_16F is only allowed
when preferableTarget == DNN_TARGET_OPENCL_FP16, which the new engine never sets).

Normalize FP16 input types to FP32 in the mainGraph path of getFLOPS via a small
filterFP16InputTypes() helper. This fixes the OCL_FP16 parameterization of the
DNNTestNetwork perf tests (e.g. YuNet_320/640/1280) which crashed in getFLOPS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 02:28:41 +03:00
..
2026-07-14 09:19:26 +03:00
2026-04-29 16:36:02 +03:00
2026-07-09 12:17:24 +03:00
2026-07-09 12:17:24 +03:00
2026-07-09 12:17:24 +03:00
2026-07-09 12:17:24 +03:00
2026-07-09 12:35:42 +03:00
2026-05-20 17:57:51 +03:00