Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'torch' has no attribute 'minimum' #17

Closed
pummi823 opened this issue Mar 17, 2022 · 3 comments
Closed

AttributeError: module 'torch' has no attribute 'minimum' #17

pummi823 opened this issue Mar 17, 2022 · 3 comments

Comments

@pummi823
Copy link

Hello!author, i finally succesfully install the spconv, and my environment is torch1.4, when i run the train.py, it raise:
File "/data1/hx/BtcDet/btcdet/models/occ_pnt/occ_training_targets/occ_targets_template.py", line 88, in point2coords_inrange
coords = torch.minimum(coords, max_grid_tensor)
AttributeError: module 'torch' has no attribute 'minimum'
why??? is the torch version wrong??(i also use torch1.3, it raise the same wrong)

@pummi823
Copy link
Author

Besides, it also raise another wrong :"module 'torch' has no attribute 'square", and i change the code to "torch.pow(x,2)" to solve it

@Xharlie
Copy link
Owner

Xharlie commented Mar 17, 2022

hi, starting torch 1.70, torch has minimum, see:
https://pytorch.org/docs/1.7.0/generated/torch.minimum.html?highlight=minimum#torch.minimum

Please check your cuda version and closely follow the README instruction.

@Xharlie Xharlie closed this as completed Mar 17, 2022
@pummi823
Copy link
Author

you are really a very kind author!thanks for your answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants