Closed 440981 closed 11 months ago
Hi @440981 , we moved cmaps
into SparseTensor._cache
in TorchSparse 2.0.1. Could you please try new_tensor._caches.cmaps.setdefault(new_tensor.stride, new_tensor.coords)
?
你好@440981,我们
cmaps
进入SparseTensor._cache
了 TorchSparse 2.0.1。你能尝试一下new_tensor._caches.cmaps.setdefault(new_tensor.stride, new_tensor.coords)
吗?
Can you provide whl installation files for version 1.4.0? Upgrade to 2.0.1 too many apis are not available
Yes. Please check this tag for torchsparse 1.4.0.
Because I do not have sudo permissions, I keep reporting fatal error: google/dense_hash_map: No such file or directory. I have installed Google Sparse Hash
In file included from torchsparse/backend/hashmap/hashmap_cpu.cpp:1:
torchsparse/backend/hashmap/hashmap_cpu.hpp:8:10: fatal error: google/dense_hash_map: No such file or directory
8 | #include <google/dense_hash_map>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for torchsparse Running setup.py clean for torchsparse Failed to build torchsparse ERROR: Could not build wheels for torchsparse, which is required to install pyproject.toml-based projects
FYI. You can install Google Sparse Hash without sudo. Please refer to our document and this link.
Is there an existing issue for this?
Have you followed all the steps in the FAQ?
Current Behavior
new_tensor = SparseTensor(inserted_feat, inserted_coords, 1) new_tensor.cmaps.setdefault(new_tensor.stride, new_tensor.coords)
Error Line
AttributeError: 'SparseTensor' object has no attribute 'cmaps'
Environment
Full Error Log
No response