MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / assert_equal

Method assert_equal

test/dnnc_testing.py:15–22  ·  view source on GitHub ↗
(actual, desired)

Source from the content-addressed store, hash-verified

13 return True;
14
15 def assert_equal(actual, desired):
16 assert actual.shape() == desired.shape()
17 actual = actual.data()
18 desired = desired.data()
19 for (a,d) in zip(actual, desired):
20 assert (a==d), "ASSERT failed on assert_equal"
21
22 return True;
23
24 def assert_allclose(actual, desired, rtol=1e-07, atol=0):
25 assert actual.shape() == desired.shape()

Callers 15

test_Flatten1D_boolMethod · 0.80
test_Flatten1D_intMethod · 0.80
test_Flatten1D_floatMethod · 0.80
test_Flatten1D_doubleMethod · 0.80
test_Flatten2D_boolMethod · 0.80
test_Flatten2D_intMethod · 0.80
test_Flatten2D_floatMethod · 0.80
test_Flatten2D_doubleMethod · 0.80
test_Flatten3D_boolMethod · 0.80
test_Flatten3D_intMethod · 0.80
test_Flatten3D_floatMethod · 0.80
test_Flatten3D_doubleMethod · 0.80

Calls 2

shapeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected