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

Method get_workspace_bundle

dnn/src/naive/group_norm/opr_impl.cpp:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156WorkspaceBundle GroupNormBackwardImpl::get_workspace_bundle(
157 size_t N, size_t C, size_t G, size_t dtype_size, void* raw_ptr) {
158 return {raw_ptr,
159 {N * C * dtype_size, N * C * dtype_size, N * G * dtype_size},
160 handle()->alignment_requirement()};
161}
162
163void GroupNormForwardImpl::exec(
164 _megdnn_tensor_in data, _megdnn_tensor_in weight, _megdnn_tensor_in bias,

Callers

nothing calls this directly

Calls 1

alignment_requirementMethod · 0.45

Tested by

no test coverage detected