make a Meth that requires copying the value into another tensor
| 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 |