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
e7a446ae
Unverified
Commit
e7a446ae
authored
Jun 05, 2020
by
Joanna
Committed by
GitHub
Jun 05, 2020
Browse files
add len to DC (#320)
Co-authored-by:
lixuanyi
<
lixuanyi@sensetime.com
>
parent
d1283981
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mmcv/parallel/data_container.py
mmcv/parallel/data_container.py
+3
-0
No files found.
mmcv/parallel/data_container.py
View file @
e7a446ae
...
...
@@ -50,6 +50,9 @@ class DataContainer(object):
def
__repr__
(
self
):
return
f
'
{
self
.
__class__
.
__name__
}
(
{
repr
(
self
.
data
)
}
)'
def
__len__
(
self
):
return
len
(
self
.
_data
)
@
property
def
data
(
self
):
return
self
.
_data
...
...
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