Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
7499c8d4
"vscode:/vscode.git/clone" did not exist on "c759fc560f84eaff3577afac0083a2a2f07b349f"
Commit
7499c8d4
authored
Nov 07, 2019
by
Gao, Xiang
Committed by
Farhad Ramezanghorbani
Nov 07, 2019
Browse files
Use modern type annotations for models.py (#374)
parent
2c0e6df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchani/models.py
torchani/models.py
+2
-2
No files found.
torchani/models.py
View file @
7499c8d4
...
...
@@ -28,6 +28,7 @@ shouldn't be used anymore.
"""
import
torch
from
torch
import
Tensor
from
typing
import
Tuple
from
pkg_resources
import
resource_filename
from
.
import
neurochem
...
...
@@ -88,8 +89,7 @@ class BuiltinNet(torch.nn.Module):
self
.
neural_networks
=
neurochem
.
load_model_ensemble
(
self
.
species
,
self
.
ensemble_prefix
,
self
.
ensemble_size
)
def
forward
(
self
,
species_coordinates
):
# type: (Tuple[torch.Tensor, torch.Tensor]) -> Tuple[torch.Tensor, torch.Tensor]
def
forward
(
self
,
species_coordinates
:
Tuple
[
Tensor
,
Tensor
])
->
Tuple
[
Tensor
,
Tensor
]:
"""Calculates predicted properties for minibatch of configurations
Args:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment