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

Method check_exec

dnn/src/common/lsq.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void LSQForward::check_exec(
31 const TensorLayout& input, const TensorLayout& scale,
32 const TensorLayout& zero_point, const TensorLayout& grad_scale,
33 const TensorLayout& output, size_t workspace_in_bytes) {
34 check_layout_fwd(input, scale, zero_point, grad_scale, output);
35 auto required_workspace_space =
36 get_workspace_in_bytes(input, scale, zero_point, grad_scale, output);
37 megdnn_assert(workspace_in_bytes >= required_workspace_space);
38}
39
40void LSQBackward::check_exec(
41 const TensorLayout& diff, const TensorLayout& input, const TensorLayout& scale,

Callers

nothing calls this directly

Calls 1

get_workspace_in_bytesFunction · 0.70

Tested by

no test coverage detected