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

Method test_onehot_cpu

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

Source from the content-addressed store, hash-verified

1959 tensor.to_numpy(y_t[0]).shape)
1960
1961 def test_onehot_cpu(self):
1962 self._onehot_helper(cpu_dev)
1963
1964 @unittest.skipIf(not singa_api.USE_CUDA, 'CUDA is not enabled')
1965 def test_onehot_gpu(self):

Callers

nothing calls this directly

Calls 1

_onehot_helperMethod · 0.95

Tested by

no test coverage detected