\brief identifier of the tensor
| 206 | } |
| 207 | /// \brief identifier of the tensor |
| 208 | size_t identifier() const { |
| 209 | return reinterpret_cast<size_t>(_mem_layout - 0xfff); |
| 210 | } |
| 211 | /// \brief check if this tensor has same id as other. |
| 212 | bool sameas(const tensor<T> &other) const { |
| 213 | return identifier() == other.identifier(); |
no outgoing calls