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

Method check_shape

test/python/test_onnx.py:49–53  ·  view source on GitHub ↗
(self, actual, expect)

Source from the content-addressed store, hash-verified

47class TestPythonOnnx(unittest.TestCase):
48
49 def check_shape(self, actual, expect):
50 self.assertEqual(
51 actual, expect, 'shape mismatch, actual shape is %s'
52 ' exepcted is %s' %
53 (_tuple_to_string(actual), _tuple_to_string(expect)))
54
55 def _conv2d_helper(self, dev):
56 x = tensor.Tensor(shape=(2, 3, 3, 3), device=dev)

Callers 2

_dropout_helperMethod · 0.95
_onehot_helperMethod · 0.95

Calls 1

_tuple_to_stringFunction · 0.70

Tested by

no test coverage detected