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

Method test_gaussian_gpu

test/python/test_tensor.py:522–526  ·  view source on GitHub ↗
(self, dev=gpu_dev)

Source from the content-addressed store, hash-verified

520
521 @unittest.skipIf(not singa_api.USE_CUDA, 'CUDA is not enabled')
522 def test_gaussian_gpu(self, dev=gpu_dev):
523 x = tensor.Tensor((3, 5, 3, 5), device=dev)
524 x.gaussian(0, 1)
525 x = tensor.Tensor((4, 5, 3, 2), device=dev)
526 x.gaussian(0, 1)
527
528 def _kfloat32_int(self, dev=gpu_dev):
529 np.random.seed(0)

Callers

nothing calls this directly

Calls 2

gaussianMethod · 0.95
TensorMethod · 0.80

Tested by

no test coverage detected