Merge pull request #24880 from fengyuentau:scatter_fp16_fix

dnn: fix ocl_fp16 support of scatter layer
pull/24881/head
Alexander Smorkalov 10 months ago committed by GitHub
commit e4131c0b5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      modules/dnn/src/layers/scatterND_layer.cpp
  2. 5
      modules/dnn/src/layers/scatter_layer.cpp

@ -74,6 +74,11 @@ public:
CV_TRACE_FUNCTION();
CV_TRACE_ARG_VALUE(name, "name", name.c_str());
if (inputs_arr.depth() == CV_16S) {
forward_fallback(inputs_arr, outputs_arr, internals_arr);
return;
}
std::vector<Mat> inputs, outputs;
inputs_arr.getMatVector(inputs);
outputs_arr.getMatVector(outputs);

@ -68,6 +68,11 @@ public:
CV_TRACE_FUNCTION();
CV_TRACE_ARG_VALUE(name, "name", name.c_str());
if (inputs_arr.depth() == CV_16S) {
forward_fallback(inputs_arr, outputs_arr, internals_arr);
return;
}
std::vector<Mat> inputs, outputs;
inputs_arr.getMatVector(inputs);
outputs_arr.getMatVector(outputs);

Loading…
Cancel
Save