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

Method copy_into

imperative/python/src/helper.h:235–237  ·  view source on GitHub ↗

make a Meth that requires copying the value into another tensor

Source from the content-addressed store, hash-verified

233 //! make a Meth that requires copying the value into another
234 //! tensor
235 static Meth copy_into(mgb::HostTensorND* tensor) {
236 return {false, tensor, tensor->comp_node()};
237 }
238};
239/*!
240 * \brief convert an object to megbrain tensor

Callers

nothing calls this directly

Calls 1

comp_nodeMethod · 0.45

Tested by

no test coverage detected