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

Function sub_opr_config

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

Source from the content-addressed store, hash-verified

12
13namespace {
14std::pair<TensorLayoutArray, MatrixMulForward::Param> sub_opr_config(
15 const TensorLayout& layout_a, const TensorLayout& layout_b,
16 const TensorLayout& layout_c, const BatchedMatrixMulForward* opr) {
17 auto mm_layout_a = layout_a.remove_axis(0);
18 auto mm_layout_b = layout_b.remove_axis(0);
19 auto mm_layout_c = layout_c.remove_axis(0);
20
21 return {{mm_layout_a, mm_layout_b, mm_layout_c}, opr->param()};
22}
23
24std::pair<TensorLayoutArray, std::unique_ptr<MatrixMulForward>> prepare_sub_opr(
25 const BatchedMatrixMulForwardImpl::AlgoBase::SizeArgs& args) {

Callers 2

prepare_sub_oprFunction · 0.70
get_subopr_listMethod · 0.70

Calls 2

remove_axisMethod · 0.80
paramMethod · 0.45

Tested by

no test coverage detected