Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ _numel_of_shape
Function
_numel_of_shape
python/dgl/dataloading/dataloader.py:342–343 ·
view source on GitHub ↗
(shape)
Source
from the content-addressed store, hash-verified
340
341
342
def
_numel_of_shape(shape):
343
return
reduce(operator.mul, shape, 1)
344
345
346
def
_init_gpu_caches(graph, gpu_caches):
Callers
1
_init_gpu_caches
Function · 0.85
Calls
1
reduce
Function · 0.85
Tested by
no test coverage detected