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

Method add_input_layout_constraint

src/opr/impl/basic_arith.cpp:340–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void Elemwise::add_input_layout_constraint() {
341 for (auto i : input()) {
342 i->add_layout_constraint_monotone();
343 }
344}
345
346void Elemwise::call_megdnn_opr_exec(
347 CompNode comp_node, megdnn::TensorNDArray& inp, const megdnn::TensorND& out,

Callers

nothing calls this directly

Calls 5

is_static_var_shapeFunction · 0.85
has_actual_computingMethod · 0.80
add_layout_constraintMethod · 0.80
infer_shapeMethod · 0.45
is_contiguousMethod · 0.45

Tested by

no test coverage detected