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

Function update_rethrow_exc

src/core/impl/graph/static_infer_impl.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32#if MGB_ENABLE_EXCEPTION
33[[noreturn]] void update_rethrow_exc(VarNode* var, MegBrainError& exc) {
34 if (var && !exc.extra_info()) {
35 OperatorNodeExcExtraInfo::record(var->owner_opr(), exc);
36 }
37 throw;
38}
39#endif
40
41} // namespace

Callers 1

Calls 2

extra_infoMethod · 0.80
owner_oprMethod · 0.45

Tested by

no test coverage detected