Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/open-mmlab/mmdetection
/ __len__
Method
__len__
tests/test_utils/test_benchmark.py:37–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
35
self.pipeline = Compose([
lambda
x: x])
36
37
def
__len__(self):
38
return
self.data.size(0)
39
40
def
get_data_info(self, index):
41
return
dict(inputs=self.data[index], data_sample=self.label[index])
Callers
nothing calls this directly
Calls
1
size
Method · 0.80
Tested by
no test coverage detected