Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ test_cast_cpu
Method
test_cast_cpu
test/python/test_operation.py:3113–3114 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3111
np.testing.assert_array_almost_equal(result_np, y, decimal=5)
3112
3113
def
test_cast_cpu(self):
3114
self.cast_test(cpu_dev)
3115
3116
@unittest.skipIf(not singa_wrap.USE_CUDA,
'CUDA is not enabled'
)
3117
def
test_cast_gpu(self):
Callers
nothing calls this directly
Calls
1
cast_test
Method · 0.95
Tested by
no test coverage detected