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

Method PowC

src/opr/impl/basic_arith.cpp:1787–1794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1785MGB_DYN_TYPE_OBJ_FINAL_IMPL(PowC);
1786
1787PowC::PowC(VarNode* i0, const Param& param, const OperatorNodeConfig& config)
1788 : Super(OperatorNodeBaseCtorParam{
1789 i0->owner_graph(), config, ssprintf("powc_%g", param.exp), {i0}}) {
1790 init_megdnn_opr(*this, param);
1791 add_input({i0});
1792 output(0)->add_flag(VarNode::Flag::ALLOW_EMPTY_SHAPE);
1793 intl::MegDNNOprInitPostCtor<PowC>::apply(*this);
1794}
1795
1796SymbolVar PowC::make(
1797 SymbolVar x, const Param& param, const OperatorNodeConfig& config) {

Callers

nothing calls this directly

Calls 2

applyFunction · 0.50
owner_graphMethod · 0.45

Tested by

no test coverage detected