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

Method test_nonzero_gpu

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

Source from the content-addressed store, hash-verified

1904
1905 @unittest.skipIf(not singa_api.USE_CUDA, 'CUDA is not enabled')
1906 def test_nonzero_gpu(self):
1907 self._nonzero_helper(gpu_dev)
1908
1909 def _cast_helper(self, dev):
1910 X = np.array([[1, 0], [1, 1]]).astype(np.float32)

Callers

nothing calls this directly

Calls 1

_nonzero_helperMethod · 0.95

Tested by

no test coverage detected