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

Method get_workspace_bundle

dnn/src/naive/svd/opr_impl.cpp:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274WorkspaceBundle SVDForwardImpl::get_workspace_bundle(
275 size_t m, size_t n, size_t dtype_size, void* raw_ptr) {
276 // Scratchpads for u and v.
277 size_t dim0 = std::max(m, n);
278 size_t dim1 = std::min(m, n);
279 return {raw_ptr,
280 {m * n * dtype_size, dim0 * dim0 * dtype_size, dim1 * dim1 * dtype_size},
281 handle()->alignment_requirement()};
282}
283
284template <typename T>
285void exec_internal(

Callers

nothing calls this directly

Calls 3

maxFunction · 0.85
minFunction · 0.50
alignment_requirementMethod · 0.45

Tested by

no test coverage detected