NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.43k stars 360 forks source link

Is there a function similar to torch.abs() ? #521

Open Pomato1999 opened 1 year ago

Pomato1999 commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

TumVink commented 1 year ago

same here. @Pomato1999 Did you find such functions? or you wrote the function yourself? And could you share the codes if it is convenient for you.

Pomato1999 commented 1 year ago

yep. You can use torch. abs () to separate the parts that need to be absolute valued, and then reconstruct the sparse vector. good luck