| 188 | } |
| 189 | |
| 190 | void SubTensorSpec::merge_with(const SubTensorSpec& rhs) { |
| 191 | mgb_assert( |
| 192 | m_layout.dtype.valid() && m_layout.dtype == rhs.m_layout.dtype && |
| 193 | rhs.m_layout.ndim); |
| 194 | m_offset_elem += rhs.m_offset_elem; |
| 195 | m_layout = rhs.m_layout; |
| 196 | } |
| 197 | |
| 198 | /* ===================== TensorStorage ===================== */ |
| 199 |
no test coverage detected