MCPcopy
hub / github.com/dmlc/dgl / test_gat

Function test_gat

tests/examples/test_sparse_examples.py:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def test_gat():
55 script = os.path.join(EXAMPLE_ROOT, "gat.py")
56 out = subprocess.run(["python", str(script)], capture_output=True)
57 assert (
58 out.returncode == 0
59 ), f"stdout: {out.stdout.decode('utf-8')}\nstderr: {out.stderr.decode('utf-8')}"
60 stdout = out.stdout.decode("utf-8")
61 assert float(stdout[-5:]) > 0.7
62
63
64def test_hgnn():

Callers

nothing calls this directly

Calls 3

joinMethod · 0.45
runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected