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

Method init_kern_sched_shape

src/opr/impl/basic_arith.cpp:1565–1571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1563}
1564
1565void Reduce::init_kern_sched_shape(const TensorShape& ishp, const TensorShape& oshp) {
1566 OutTensorShapeExtender extender(ishp, oshp);
1567 auto&& canonized_oshp = extender.get();
1568 m_kern_scheduler->init_shapes(
1569 static_cast<megdnn::Reduce*>(megdnn_opr()), comp_node(), input(0)->dtype(),
1570 m_param.mode, ishp, canonized_oshp, m_param.data_type);
1571}
1572
1573cg::OperatorNodeBase::OprEventCallback Reduce::get_opr_event_callback() {
1574 auto on_mem_status_changed = [this]() {

Callers

nothing calls this directly

Calls 4

comp_nodeFunction · 0.85
init_shapesMethod · 0.80
getMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected