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

Method test_shape_cpu

test/python/test_operation.py:1728–1729  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1726 np.testing.assert_array_almost_equal(dx, grad, decimal=5)
1727
1728 def test_shape_cpu(self):
1729 self._shape_helper(cpu_dev)
1730
1731 @unittest.skipIf(not singa_wrap.USE_CUDA, 'CUDA is not enabled')
1732 def test_shape_gpu(self):

Callers

nothing calls this directly

Calls 1

_shape_helperMethod · 0.95

Tested by

no test coverage detected