| 207 | } |
| 208 | |
| 209 | void Tensor::share_memory_with(const Tensor& src_tensor) { |
| 210 | LITE_ERROR_HANDLER_BEGIN |
| 211 | LITE_ASSERT(src_tensor.m_layout.ndim > 0, "To be shared tensor with empty layout."); |
| 212 | m_tensor_impl->share_memory_with(src_tensor.m_tensor_impl.get()); |
| 213 | update_from_implement(); |
| 214 | LITE_ERROR_HANDLER_END |
| 215 | } |
| 216 | |
| 217 | void Tensor::set_layout(const Layout& layout) { |
| 218 | LITE_ERROR_HANDLER_BEGIN |