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
MMCV
Commits
c054a239
Unverified
Commit
c054a239
authored
Sep 12, 2020
by
Cao Yuhang
Committed by
GitHub
Sep 12, 2020
Browse files
remove assertion (#549)
parent
49e32c26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
mmcv/parallel/collate.py
mmcv/parallel/collate.py
+0
-1
No files found.
mmcv/parallel/collate.py
View file @
c054a239
...
...
@@ -24,7 +24,6 @@ def collate(batch, samples_per_gpu=1):
raise
TypeError
(
f
'
{
batch
.
dtype
}
is not supported.'
)
if
isinstance
(
batch
[
0
],
DataContainer
):
assert
len
(
batch
)
%
samples_per_gpu
==
0
stacked
=
[]
if
batch
[
0
].
cpu_only
:
for
i
in
range
(
0
,
len
(
batch
),
samples_per_gpu
):
...
...
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