Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ get_length
Method
get_length
dali/python/nvidia/dali/_tensor_formatting.py:159–160 ·
view source on GitHub ↗
(self, obj)
Source
from the content-addressed store, hash-verified
157
""
"Adapter for TensorListCPU/TensorListGPU. Implements BatchAdapter protocol."
""
158
159
def
get_length(self, obj) -> int:
160
return
len(obj)
161
162
def
get_sample(self, obj, index: int):
163
return
obj[index]
Callers
1
format_batch
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected