MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / test_copy_h2d

Function test_copy_h2d

imperative/python/test/unit/functional/test_tensor.py:923–929  ·  view source on GitHub ↗
(is_varnode)

Source from the content-addressed store, hash-verified

921@pytest.mark.require_ngpu(1)
922@pytest.mark.parametrize("is_varnode", [True, False])
923def test_copy_h2d(is_varnode):
924 if is_varnode:
925 network = Network()
926 else:
927 network = None
928
929 copy_test("cpu0", "gpu0", network=network)
930
931
932@pytest.mark.require_ngpu(1)

Callers

nothing calls this directly

Calls 2

NetworkClass · 0.90
copy_testFunction · 0.85

Tested by

no test coverage detected