MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / _assert_same_array

Function _assert_same_array

python/tests/test_storage_view.py:10–13  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

8
9
10def _assert_same_array(a, b):
11 assert a["shape"] == b["shape"]
12 assert a["data"] == b["data"]
13 assert a["typestr"] == b["typestr"]
14
15
16@pytest.mark.parametrize(

Callers 2

test_storageview_cpuFunction · 0.85
test_storageview_cudaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected