MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / exec

Method exec

dnn/src/x86/warp_perspective/opr_impl.cpp:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace x86 {
12
13void 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

Callers

nothing calls this directly

Calls 3

warp_perspective_cv_execFunction · 0.85
paramFunction · 0.50
execFunction · 0.50

Tested by

no test coverage detected