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

Method new_handle

imperative/src/impl/ops/rng.cpp:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81class RNGDnnOpManager final : public DnnOpManagerT<RNGDnnOpManager, Handle> {
82public:
83 Handle new_handle(CompNode comp_node, uint64_t seed) {
84 MGB_LOCK_GUARD(sm_mtx);
85 return DnnOpManagerBase::new_handle(comp_node, seed);
86 }
87
88 size_t delete_handle(Handle handle) {
89 MGB_LOCK_GUARD(sm_mtx);

Callers

nothing calls this directly

Calls 1

new_handleFunction · 0.85

Tested by

no test coverage detected