Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/chex
/ rank_array
Function
rank_array
chex/_src/asserts_test.py:551–552 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
549
550
551
def
rank_array(n):
552
return
np.zeros(shape=[2] * n)
553
554
555
class
BroadcastAssertTest(parameterized.TestCase):
Callers
2
test_rank_should_fail_array_expectations
Method · 0.85
test_rank_should_fail_wrong_expectation_structure
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…