| 595 | } |
| 596 | |
| 597 | void 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 | |
| 603 | void TensorND::reset_ptr(void* ptr, size_t offset) { |
| 604 | m_ref_ptr.reset(ptr, offset); |
no outgoing calls
no test coverage detected