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

Method test_onehot_gpu

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

Source from the content-addressed store, hash-verified

1963
1964 @unittest.skipIf(not singa_api.USE_CUDA, 'CUDA is not enabled')
1965 def test_onehot_gpu(self):
1966 self._onehot_helper(gpu_dev)
1967
1968 def _inference_helper(self, dev):
1969 x = tensor.Tensor(shape=(2, 3, 3, 3), device=dev)

Callers

nothing calls this directly

Calls 1

_onehot_helperMethod · 0.95

Tested by

no test coverage detected