MCPcopy Index your code
hub / github.com/dmlc/dgl / test_appnp_conv

Function test_appnp_conv

tests/python/tensorflow/test_nn.py:415–422  ·  view source on GitHub ↗
(g, idtype)

Source from the content-addressed store, hash-verified

413@parametrize_idtype
414@pytest.mark.parametrize("g", get_cases(["homo"], exclude=["zero-degree"]))
415def test_appnp_conv(g, idtype):
416 ctx = F.ctx()
417 g = g.astype(idtype).to(ctx)
418 appnp = nn.APPNPConv(10, 0.1)
419 feat = F.randn((g.num_nodes(), 5))
420
421 h = appnp(g, feat)
422 assert h.shape[-1] == 5
423
424
425@parametrize_idtype

Callers 1

test_nn.pyFile · 0.70

Calls 4

ctxMethod · 0.45
toMethod · 0.45
astypeMethod · 0.45
num_nodesMethod · 0.45

Tested by

no test coverage detected