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

Method ptr

src/core/include/megbrain/tensor.h:155–157  ·  view source on GitHub ↗

apply lazy resize and get ptr

Source from the content-addressed store, hash-verified

153
154 //! apply lazy resize and get ptr
155 dt_byte* ptr() const {
156 return const_cast<TensorStorage*>(this)->apply_lazy_and_get_ptr();
157 }
158
159 /*!
160 * \brief usable size in bytes until end of allocated block

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected