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

Function test_copy_d2h

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

Source from the content-addressed store, hash-verified

932@pytest.mark.require_ngpu(1)
933@pytest.mark.parametrize("is_varnode", [True, False])
934def test_copy_d2h(is_varnode):
935 if is_varnode:
936 network = Network()
937 else:
938 network = None
939
940 copy_test("gpu0", "cpu0", network=network)
941
942
943@pytest.mark.require_ngpu(2)

Callers

nothing calls this directly

Calls 2

NetworkClass · 0.90
copy_testFunction · 0.85

Tested by

no test coverage detected