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

Method test_reciprocal_gpu

test/python/test_onnx.py:1615–1616  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1613
1614 @unittest.skipIf(not singa_api.USE_CUDA, 'CUDA is not enabled')
1615 def test_reciprocal_gpu(self):
1616 self._reciprocal_helper(gpu_dev)
1617
1618 def _constantOfShape_helper(self, dev):
1619 X = np.array([4, 3, 2]).astype(np.int64)

Callers

nothing calls this directly

Calls 1

_reciprocal_helperMethod · 0.95

Tested by

no test coverage detected