MCPcopy
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
342def _numel_of_shape(shape):
343 return reduce(operator.mul, shape, 1)
344
345
346def _init_gpu_caches(graph, gpu_caches):

Callers 1

_init_gpu_cachesFunction · 0.85

Calls 1

reduceFunction · 0.85

Tested by

no test coverage detected