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

Method clone

lite/include/lite/tensor.h:343–345  ·  view source on GitHub ↗

* @brief clone data of this holder * * @return a ref pointer of m_value */

Source from the content-addressed store, hash-verified

341 * @return a ref pointer of m_value
342 */
343 virtual std::shared_ptr<HolderBase> clone() override {
344 return std::make_shared<AnyHolder>(m_value);
345 }
346
347 public:
348 T m_value; ///< value

Callers 2

LiteAnyFunction · 0.45
tensor.hFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected