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

Function test_copy_d2d

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

Source from the content-addressed store, hash-verified

943@pytest.mark.require_ngpu(2)
944@pytest.mark.parametrize("is_varnode", [True, False])
945def test_copy_d2d(is_varnode):
946 if is_varnode:
947 network = Network()
948 else:
949 network = None
950
951 copy_test("gpu0", "gpu1", network=network)
952 copy_test("gpu0:0", "gpu0:1", network=network)
953
954
955@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