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

Function prepare_sub_opr

dnn/src/cuda/batched_matrix_mul/brute_force.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24std::pair<TensorLayoutArray, std::unique_ptr<MatrixMulForward>> prepare_sub_opr(
25 const BatchedMatrixMulForwardImpl::AlgoBase::SizeArgs& args) {
26 auto matmul_opr = args.opr->handle()->create_operator<MatrixMulForward>();
27 set_execution_policy<BatchedMatrixMulForward, MatrixMulForward*>(
28 args.opr, matmul_opr.get());
29
30 auto&& config =
31 sub_opr_config(args.layout_a, args.layout_b, args.layout_c, args.opr);
32 matmul_opr->param() = config.second;
33
34 return {config.first, std::move(matmul_opr)};
35}
36
37} // namespace
38

Callers 3

is_availableMethod · 0.70
execMethod · 0.70

Calls 4

sub_opr_configFunction · 0.70
handleMethod · 0.45
getMethod · 0.45
paramMethod · 0.45

Tested by

no test coverage detected