MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / assert_tuple_equal

Function assert_tuple_equal

imperative/python/test/unit/module/test_rnn.py:11–14  ·  view source on GitHub ↗
(src, ref)

Source from the content-addressed store, hash-verified

9
10
11def assert_tuple_equal(src, ref):
12 assert len(src) == len(ref)
13 for i, j in zip(src, ref):
14 assert i == j
15
16
17@pytest.mark.skipif(get_device_count("gpu") > 0, reason="no algorithm on cuda")

Callers 4

test_rnn_cellFunction · 0.85
test_lstm_cellFunction · 0.85
test_rnnFunction · 0.85
test_lstmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected