| 11 | namespace x86 { |
| 12 | |
| 13 | void WarpPerspectiveImpl::exec( |
| 14 | _megdnn_tensor_in src, _megdnn_tensor_in mat, _megdnn_tensor_in mat_idx, |
| 15 | _megdnn_tensor_in dst, _megdnn_workspace workspace) { |
| 16 | check_exec_allow_nhwc_mat_idx( |
| 17 | src.layout, mat.layout, mat_idx.layout, dst.layout, workspace.size); |
| 18 | if (warp::is_cv_available( |
| 19 | src.layout, mat.layout, dst.layout, param().imode, param().format) && |
| 20 | is_supported(SIMDType::SSE4_2)) { |
| 21 | warp_perspective_cv_exec( |
| 22 | src, mat, mat_idx, dst, param().border_val, param().bmode, |
| 23 | param().imode, handle()); |
| 24 | } else { |
| 25 | //! Use fallback implementation |
| 26 | fallback::WarpPerspectiveImpl::exec(src, mat, mat_idx, dst, workspace); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | } // namespace x86 |
| 31 | } // namespace megdnn |
nothing calls this directly
no test coverage detected