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

Method Identity

src/opr/impl/utility.cpp:394–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392MGB_DYN_TYPE_OBJ_FINAL_IMPL(Identity);
393
394Identity::Identity(VarNode* input, const OperatorNodeConfig& config)
395 : Super(input->owner_graph(), config, "identity", {input}) {
396 add_input({input});
397 add_output(None)->add_flag(VarNode::Flag::ALLOW_EMPTY_SHAPE);
398 set_ignore_side_effect();
399}
400
401SymbolVar Identity::make(SymbolVar input, const OperatorNodeConfig& config) {
402 if (input.node()->owner_opr()->same_type<Identity>()) {

Callers 6

__init__Method · 0.80
__init__Method · 0.80
create_bn_relu_floatFunction · 0.80
getFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

owner_graphMethod · 0.45

Tested by 2

__init__Method · 0.64
__init__Method · 0.64