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

Method add_input_layout_constraint

src/opr/impl/blas.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void MatrixMul::add_input_layout_constraint() {
69 auto check = [](const TensorLayout& ly) {
70 return check_layout(ly, 0) || check_layout(ly, 1);
71 };
72 input(0)->add_layout_constraint(check);
73 input(1)->add_layout_constraint(check);
74}
75
76size_t MatrixMul::get_workspace_size_bytes(
77 const TensorShapeArray& input_shapes,

Callers

nothing calls this directly

Calls 2

add_layout_constraintMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected