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
abc8f7f8
Commit
abc8f7f8
authored
Dec 12, 2019
by
Richard Xue
Committed by
Gao, Xiang
Dec 12, 2019
Browse files
Update new.py (#404)
parent
be848453
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchani/data/new.py
torchani/data/new.py
+1
-1
No files found.
torchani/data/new.py
View file @
abc8f7f8
...
@@ -593,7 +593,7 @@ def collate_fn(data, chunk_threshold, properties_info):
...
@@ -593,7 +593,7 @@ def collate_fn(data, chunk_threshold, properties_info):
if
properties_info
[
'padding_values'
][
i
]
is
None
:
if
properties_info
[
'padding_values'
][
i
]
is
None
:
prop
=
torch
.
stack
(
prop
)
prop
=
torch
.
stack
(
prop
)
else
:
else
:
prop
=
torch
.
nn
.
utils
.
rnn
.
pad_sequence
(
batch_species
,
prop
=
torch
.
nn
.
utils
.
rnn
.
pad_sequence
(
prop
,
batch_first
=
True
,
batch_first
=
True
,
padding_value
=
properties_info
[
'padding_values'
][
i
])
padding_value
=
properties_info
[
'padding_values'
][
i
])
# sort with number of atoms
# sort with number of atoms
...
...
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