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
RODNet
Commits
808e93c5
Commit
808e93c5
authored
Nov 09, 2021
by
yizhou-wang
Browse files
Update collate_functions.py for pytorch 1.9
parent
a2321e7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
rodnet/datasets/collate_functions.py
rodnet/datasets/collate_functions.py
+6
-1
No files found.
rodnet/datasets/collate_functions.py
View file @
808e93c5
import
numpy
as
np
import
numpy
as
np
import
torch
import
torch
import
re
import
re
from
torch._six
import
container_abcs
,
string_classes
,
int_classes
try
:
from
torch._six
import
container_abcs
,
string_classes
,
int_classes
except
:
import
collections.abc
as
container_abcs
string_classes
=
str
int_classes
=
int
np_str_obj_array_pattern
=
re
.
compile
(
r
'[SaUO]'
)
np_str_obj_array_pattern
=
re
.
compile
(
r
'[SaUO]'
)
default_collate_err_msg_format
=
(
default_collate_err_msg_format
=
(
...
...
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