Closed ameya98 closed 9 months ago
PyTorch complains about taking gradients when running the example command for generating molecules:
RuntimeError: a leaf Variable that requires grad is being used in an in-place operation.
During generation, we don't need gradients though. So, I wrap the command in a torch.no_grad().
PyTorch complains about taking gradients when running the example command for generating molecules:
During generation, we don't need gradients though. So, I wrap the command in a torch.no_grad().