Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ test_round_gpu
Method
test_round_gpu
test/python/test_api.py:892–893 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
890
891
@unittest.skipIf(not singa_api.USE_CUDA,
'CUDA is not enabled'
)
892
def
test_round_gpu(self):
893
self._round(gpu_dev)
894
895
def
_round(self, dev=gpu_dev):
896
x = tensor.Tensor(shape=(3,4,5), device=dev).gaussian(0, 1)
Callers
nothing calls this directly
Calls
1
_round
Method · 0.95
Tested by
no test coverage detected