MCPcopy Create free account
hub / github.com/apache/singa / check_shape

Method check_shape

test/python/test_operation.py:89–93  ·  view source on GitHub ↗
(self, actual, expect)

Source from the content-addressed store, hash-verified

87class TestPythonOperation(unittest.TestCase):
88
89 def check_shape(self, actual, expect):
90 self.assertEqual(
91 actual, expect, 'shape mismatch, actual shape is %s'
92 ' exepcted is %s' %
93 (_tuple_to_string(actual), _tuple_to_string(expect)))
94
95 def _greater_helper(self, dev):
96 x0 = np.array([-0.9, -0.3, -0.1, 0.1, 0.5,

Callers 15

_conv2d_helperMethod · 0.95
_conv_same_padMethod · 0.95
_pooling_same_padMethod · 0.95
_batchnorm2d_helperMethod · 0.95
_Abs_helperMethod · 0.95
_Exp_helperMethod · 0.95
_Identity_helperMethod · 0.95
_LeakyRelu_helperMethod · 0.95

Calls 1

_tuple_to_stringFunction · 0.70

Tested by

no test coverage detected