Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ROCm/AMDMIGraphX
/ nelements
Function
nelements
test/py/test_array.py:46–47 ·
view source on GitHub ↗
(lens)
Source
from the content-addressed store, hash-verified
44
45
46
def
nelements(lens):
47
return
reduce(
lambda
x, y: x * y, lens, 1)
48
49
50
def
create_buffer(t, data, shape):
Callers
2
check_shapes
Function · 0.70
test_shape
Function · 0.70
Calls
1
reduce
Function · 0.85
Tested by
no test coverage detected