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
46c554ad
Unverified
Commit
46c554ad
authored
Apr 22, 2022
by
Ray Schireman
Committed by
GitHub
Apr 22, 2022
Browse files
add keyword arguments to testAEVComputer (#619)
Co-authored-by:
Raymond G Schireman
<
raymond.schireman@uvm.edu
>
parent
1c5ee5f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_cuaev.py
tests/test_cuaev.py
+2
-2
No files found.
tests/test_cuaev.py
View file @
46c554ad
...
@@ -30,8 +30,8 @@ class TestCUAEVNoGPU(TestCase):
...
@@ -30,8 +30,8 @@ class TestCUAEVNoGPU(TestCase):
aev_computer
=
torchani
.
AEVComputer
(
**
consts
,
use_cuda_extension
=
True
)
aev_computer
=
torchani
.
AEVComputer
(
**
consts
,
use_cuda_extension
=
True
)
s
=
torch
.
jit
.
script
(
aev_computer
)
s
=
torch
.
jit
.
script
(
aev_computer
)
# Computation of AEV using cuaev when there is no atoms does not require CUDA, and can be run without GPU
# Computation of AEV using cuaev when there is no atoms does not require CUDA, and can be run without GPU
species
=
make_tensor
((
8
,
0
),
'cpu'
,
torch
.
int64
,
low
=-
1
,
high
=
4
)
species
=
make_tensor
((
8
,
0
),
device
=
'cpu'
,
dtype
=
torch
.
int64
,
low
=-
1
,
high
=
4
)
coordinates
=
make_tensor
((
8
,
0
,
3
),
'cpu'
,
torch
.
float32
,
low
=-
5
,
high
=
5
)
coordinates
=
make_tensor
((
8
,
0
,
3
),
device
=
'cpu'
,
dtype
=
torch
.
float32
,
low
=-
5
,
high
=
5
)
self
.
assertIn
(
"cuaev::run"
,
str
(
s
.
graph_for
((
species
,
coordinates
))))
self
.
assertIn
(
"cuaev::run"
,
str
(
s
.
graph_for
((
species
,
coordinates
))))
def
testPickle
(
self
):
def
testPickle
(
self
):
...
...
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