| 149 | } |
| 150 | |
| 151 | void GaussianBlurImpl::exec( |
| 152 | _megdnn_tensor_in src, _megdnn_tensor_in dst, _megdnn_workspace workspace) { |
| 153 | using namespace megcv; |
| 154 | check_exec(src.layout, dst.layout, workspace.size); |
| 155 | MEGDNN_DISPATCH_CPU_KERN_OPR( |
| 156 | if (dst.layout.dtype == dtype::Float32()) { |
| 157 | gaussian_blur_exec<float>(src, dst); |
| 158 | } else if (dst.layout.dtype == dtype::Uint8()) { |
| 159 | gaussian_blur_exec_8u(src, dst); |
| 160 | } else { megdnn_throw("Unsupported datatype of GaussianBlur optr."); }); |
| 161 | } |
| 162 | |
| 163 | } // namespace fallback |
| 164 | } // namespace megdnn |