| 751 | } |
| 752 | |
| 753 | TensorPtr Tensor::sub(size_t offset, TensorShape shape) { |
| 754 | TensorLayout layout(shape, m_dtype); |
| 755 | return Tensor::make(m_blob, offset + m_offset, layout); |
| 756 | } |
| 757 | |
| 758 | uint64_t Tensor::get_ready_event() { |
| 759 | if (m_produced_at == 0) { |