5762f2b30f58c1623efd6841d1273d8ab67541ea,test/nn/conv/test_gin_conv.py,,test_gin_conv,#,8
Before Change
assert (torch.abs(conv(x, edge_index) -
jittedconv(x, edge_index)) < 1e-6).all().item()
conv = GINConv(nn, train_eps=False)
assert conv(x, edge_index).size() == (num_nodes, out_channels)
jitcls = conv.jittable(x=x, edge_index=edge_index, full_eval=True)
jitconv = jitcls(nn, train_eps=False)
jitconv.load_state_dict(conv.state_dict())
jittedconv = torch.jit.script(jitconv)
conv.eval()
After Change
jit_conv = conv.jittable(x=x, edge_index=edge_index)
jit_conv = torch.jit.script(jit_conv)
jit_out = jit_conv(x, edge_index)
assert jit_out.tolist() == out.tolist()
def test_gine_conv():
in_channels, out_channels = (16, 32)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 5762f2b30f58c1623efd6841d1273d8ab67541ea
Time: 2020-06-08
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/conv/test_gin_conv.py
Class Name:
Method Name: test_gin_conv
Project Name: rusty1s/pytorch_geometric
Commit Name: 72e8ef33d6a6239b71dbd1b24edccf1e5d03d9a1
Time: 2020-06-15
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/conv/test_gcn_conv.py
Class Name:
Method Name: test_gcn_conv
Project Name: rusty1s/pytorch_geometric
Commit Name: 5762f2b30f58c1623efd6841d1273d8ab67541ea
Time: 2020-06-08
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/conv/test_gin_conv.py
Class Name:
Method Name: test_gine_conv