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

Method reset

dnn/src/common/basic_types.cpp:597–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void RefPtr::reset(const void* ptr, size_t offset) {
598 megdnn_assert(m_mutable, "this RefPtr can't change.");
599 *m_ref = const_cast<void*>(ptr);
600 m_offset = offset;
601}
602
603void TensorND::reset_ptr(void* ptr, size_t offset) {
604 m_ref_ptr.reset(ptr, offset);

Callers 11

flip_filterMethod · 0.45
repFunction · 0.45
packA_kernMethod · 0.45
exec_matmulMethod · 0.45
initMethod · 0.45
reset_ptrMethod · 0.45
make_rawMethod · 0.45
makeMethod · 0.45
flip_filterMethod · 0.45
flip_filterMethod · 0.45
flip_filterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected