mit-han-lab / torchsparse

[MICRO'23, MLSys'22] TorchSparse: Efficient Training and Inference Framework for Sparse Convolution on GPUs.
https://torchsparse.mit.edu
MIT License
1.15k stars 131 forks source link

[BUG] AttributeError: module 'torchsparse.nn.functional' has no attribute 'get_default_conv_config' #262

Closed Tortoise0Knight closed 6 months ago

Tortoise0Knight commented 7 months ago

Is there an existing issue for this?

Current Behavior

I'm running python examples/example.py, and the error occured:

Traceback (most recent call last): File "/workspace/mwx/torchsparse/examples/example.py", line 45, in conv_config = F.get_default_conv_config() AttributeError: module 'torchsparse.nn.functional' has no attribute 'get_default_conv_config'

Expected Behavior

Should it be F.conv_config.get_default_conv_config() ?

Environment

- GCC: 7.5.0
- NVCC: V11.1.105
- PyTorch: 1.10.0+cu111
- PyTorch CUDA: 11.1
- TorchSparse: 2.1.0

Anything else?

No response

ys-2020 commented 7 months ago

Yes. F.conv_config.get_default_conv_config() should be correct. Thanks for pointing that out!