MCPcopy
hub / github.com/dmlc/dgl / check_close

Function check_close

tests/python/mxnet/test_nn.py:21–22  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

19
20
21def check_close(a, b):
22 assert np.allclose(a.asnumpy(), b.asnumpy(), rtol=1e-4, atol=1e-4)
23
24
25def _AXWb(A, X, W, b):

Callers 2

test_graph_convFunction · 0.85
test_simple_poolFunction · 0.85

Calls 1

asnumpyMethod · 0.80

Tested by

no test coverage detected