| 392 | MGB_DYN_TYPE_OBJ_FINAL_IMPL(Identity); |
| 393 | |
| 394 | Identity::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 | |
| 401 | SymbolVar Identity::make(SymbolVar input, const OperatorNodeConfig& config) { |
| 402 | if (input.node()->owner_opr()->same_type<Identity>()) { |