Unverified Commit 466899e6 authored by fzyzcjy's avatar fzyzcjy Committed by GitHub
Browse files

Fix multimodal hashing error (#5174)

parent 11d760d5
......@@ -200,6 +200,7 @@ class MultimodalDataItem:
def tensor_hash(f):
f_list = flatten_nested_list(f)
f_list = [x.flatten() if isinstance(x, torch.Tensor) else x for x in f_list]
f_cat = torch.concat(f_list).contiguous().numpy().tobytes()
return hash(f_cat)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment