You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: max(): Expected reduction dim to be specified forinput.numel() == 0. Specify the reduction dim with the 'dim' argument.
I thought I can fix this by increasing the batch size so that always at least one molecule is valid in the batch but due to the resampling this does not work either:
19:18:53 2 / 16 molecules are invalid even after 20 resampling
19:18:53 2 / 14 molecules are invalid even after 20 resampling
19:18:53 2 / 12 molecules are invalid even after 20 resampling
19:18:54 5 / 10 molecules are invalid even after 20 resampling
19:18:54 1 / 5 molecules are invalid even after 20 resampling
19:18:54 2 / 4 molecules are invalid even after 20 resampling
19:18:54 1 / 1 molecules are invalid even after 20 resampling
Then, I would like to increase the max_resample parameter but it's hardcoded, so there is no way to control it.
versions:
torch: 1.11.0
torchdrug: 0.1.2
Fix:
The following should be more robust but do the same job:
iflen(count) >0andmax(count) >1:
The text was updated successfully, but these errors were encountered:
During property optimization, if all molecules are invalid, the following line fails:
torchdrug/torchdrug/data/graph.py
Line 1222 in 119002a
with the error:
I thought I can fix this by increasing the batch size so that always at least one molecule is valid in the batch but due to the resampling this does not work either:
Then, I would like to increase the
max_resample
parameter but it's hardcoded, so there is no way to control it.versions:
Fix:
The following should be more robust but do the same job:
The text was updated successfully, but these errors were encountered: