I am working on a project that involves performing operations on 1-dimensional vectors using sparse tensor auto-differentiation. I am trying to use MinkowskiEngine to perform vector addition and dot product on 1-dimensional vectors and measure the time taken for these operations. However, I am encountering issues when trying to create ME.SparseTensor with 1-dimensional coordinates.
To Reproduce
Here is the code snippet that I am using:
import torch
import MinkowskiEngine as ME
import time
Define two sparse tensors with 1-dimensional coordinates
When running this code, I receive the following error:
File "/lib/python3.8/site-packages/MinkowskiEngine-0.5.4-py3.8-linux-x86_64.egg/MinkowskiEngine/MinkowskiCoordinateManager.py", line 122, in init
raise ValueError(f"Invalid rank D > 0, D = {D}.")
ValueError: Invalid rank D > 0, D = 0.
I understand that MinkowskiEngine is primarily designed for high-dimensional data, but I am specifically interested in using it for 1-dimensional vectors for comparison purposes in my project.
Could you please guide me on how to properly use MinkowskiEngine for operations on 1-dimensional vectors? Any help would be greatly appreciated.
Describe the bug
Hello,
I am working on a project that involves performing operations on 1-dimensional vectors using sparse tensor auto-differentiation. I am trying to use MinkowskiEngine to perform vector addition and dot product on 1-dimensional vectors and measure the time taken for these operations. However, I am encountering issues when trying to create ME.SparseTensor with 1-dimensional coordinates.
To Reproduce
Here is the code snippet that I am using:
When running this code, I receive the following error:
I understand that MinkowskiEngine is primarily designed for high-dimensional data, but I am specifically interested in using it for 1-dimensional vectors for comparison purposes in my project.
Could you please guide me on how to properly use MinkowskiEngine for operations on 1-dimensional vectors? Any help would be greatly appreciated.
Thank you!