| 310 | } |
| 311 | |
| 312 | size_t Tensor::Key::doGetHash() const |
| 313 | { |
| 314 | if (m_wrapper) |
| 315 | { |
| 316 | return 0; // all wrappers are equal wrt. the cache |
| 317 | } |
| 318 | else |
| 319 | { |
| 320 | using util::ComputeHash; |
| 321 | return ComputeHash(m_shape, m_dtype); |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | bool Tensor::Key::doIsCompatible(const IKey &that_) const |
| 326 | { |
nothing calls this directly
no test coverage detected