Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/chex
/ array_from_shape
Function
array_from_shape
chex/_src/asserts_test.py:39–40 ·
view source on GitHub ↗
(*shape)
Source
from the content-addressed store, hash-verified
37
38
39
def
array_from_shape(*shape):
40
return
np.ones(shape=shape)
41
42
43
def
emplace(arrays, dtype):
Callers
2
test_equal_shape_at_dims_should_pass
Method · 0.85
test_equal_shape_at_dims_should_fail
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…