MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / doGetHash

Method doGetHash

python/mod_cvcuda/nvcv/Tensor.cpp:312–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312size_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
325bool Tensor::Key::doIsCompatible(const IKey &that_) const
326{

Callers

nothing calls this directly

Calls 1

ComputeHashFunction · 0.70

Tested by

no test coverage detected