Closed nec4 closed 5 years ago
Ok - added test_schnet_dataset_loss()
to test_utils.py
and ran autopep8. This new test just checks to see if dataset_loss
works with CGSchNet models. All tests pass for me. Let me know if there is anything to fix/address or add.
Thanks for the feedback. I have updated the comments/docs to address the points you have raised. Let me know if you think there is anything more to change or add.
Development:
[x] Add tests
Checks:
nosetests
This PR fixes a bug in
dataset_loss
, where the embeddings were not forwarded properly, which thereby precluded its use for CGSchNet models. Additionally, the loss was not being detached during accumulation, and so memory issues were possible. I plan to add dataset loss test for a random CGSchNet architecture.