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

Method make_shared

imperative/python/src/helper.h:140–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 //! create a shared_ptr as an alias of the underlying ptr
139 template <typename T>
140 std::shared_ptr<T> make_shared(T* ptr) const {
141 return {m_ptr, ptr};
142 }
143};
144
145//! exception to be thrown when python callback fails

Callers 3

embed_inputsFunction · 0.80
make_constMethod · 0.80
np2tensor_try_borrowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected