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

Method wrap_shallow_copy

src/opr/impl/loop/grad_sereg.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16class LoopGradSerializer {
17 template <class Opr>
18 static cg::OperatorNodeBase* wrap_shallow_copy(
19 const OprShallowCopyContext& ctx, const cg::OperatorNodeBase& opr,
20 const VarNodeArray& inputs, const OperatorNodeConfig& config) {
21 MGB_MARK_USED_VAR(ctx);
22 return opr.cast_final_safe<Opr>().shallow_copy(inputs, config);
23 }
24
25public:
26 static void reg_all();

Callers

nothing calls this directly

Calls 1

shallow_copyMethod · 0.45

Tested by

no test coverage detected