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

Method PoolingForward

src/opr/impl/dnn/pooling.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11MGB_DYN_TYPE_OBJ_FINAL_IMPL(PoolingForward);
12
13PoolingForward::PoolingForward(
14 VarNode* i0, const Param& param, const ExecutionPolicy& policy,
15 const OperatorNodeConfig& config)
16 : Super(OperatorNodeBaseCtorParam{i0->owner_graph(), config, "pooling", {i0}}) {
17 init_megdnn_opr(*this, param);
18 add_input({i0});
19 output(0)->add_flag(VarNode::Flag::ALLOW_EMPTY_SHAPE);
20 m_policy = policy;
21
22 intl::MegDNNOprInitPostCtor<PoolingForward>::apply(*this);
23}
24
25SymbolVar PoolingForward::make(
26 SymbolVar i0, const Param& param, const ExecutionPolicy& policy,

Callers

nothing calls this directly

Calls 2

applyFunction · 0.50
owner_graphMethod · 0.45

Tested by

no test coverage detected