Skip to content

Commit

Permalink
Remove annotation with torch in loss
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwen committed Jan 21, 2021
1 parent 550e171 commit 654773d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kliff/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def energy_forces_residual(
identifier: str,
natoms: int,
weight: float,
prediction: Union[np.array, torch.Tensor],
reference: Union[np.array, torch.Tensor],
prediction: np.array,
reference: np.array,
data: Dict[str, Any],
):
"""
Expand Down Expand Up @@ -109,8 +109,8 @@ def energy_residual(
identifier: str,
natoms: int,
weight: float,
prediction: Union[np.array, torch.Tensor],
reference: Union[np.array, torch.Tensor],
prediction: np.array,
reference: np.array,
data: Dict[str, Any],
):
"""
Expand All @@ -129,8 +129,8 @@ def forces_residual(
identifier: str,
natoms: int,
weight: float,
prediction: Union[np.array, torch.Tensor],
reference: Union[np.array, torch.Tensor],
prediction: np.array,
reference: np.array,
data: Dict[str, Any],
):
"""
Expand Down

0 comments on commit 654773d

Please sign in to comment.