-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TensorNet compatible with TorchScript (#186)
* Change some lines incompatible with jit script * Remove some empty lines * Fix typo * Include an assert to appease TorchScript * Change a range loop to an enumerate * Add test for skewtensor function * Small changes from merge * Update test * Update vector_to_skewtensor * Remove some parenthesis * Small changes * Remove skewtensor test * Annotate types in Atomref * Simplify a couple of operations * Check also derivative in torchscript test * Type annotate forward LLNP * Try double backward in the TorchScript test * Change test name * Annotate forward * Remove unused variables * Remove unnecessary enumerates * Add TorchScript GPU tests
- Loading branch information
1 parent
e26dd40
commit a116847
Showing
4 changed files
with
128 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters