7be56405f2af0f700763249da3c368976582d792,examples/tgn.py,,test,#,159
Before Change
dtype=torch.long, device=device)
n_id = torch.cat([src, pos_dst, neg_dst]).unique()
query_t = t[0]
adj_t, n_id = sampler(n_id, t=query_t.cpu())
assoc[n_id] = torch.arange(n_id.size(0), device=device)
z, _ = model(n_id, query_t)
After Change
@torch.no_grad()
def test(data):
memory.eval()
gnn.eval()
link_pred.eval()
torch.manual_seed(12345) // Ensure deterministic sampling across epochs.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 7be56405f2af0f700763249da3c368976582d792
Time: 2020-12-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/tgn.py
Class Name:
Method Name: test
Project Name: xinntao/BasicSR
Commit Name: c845ea5c15fb977b6518cc5398e87a89e3a9e700
Time: 2018-04-25
Author: wxt1994@126.com
File Name: codes/test_onlyLR.py
Class Name:
Method Name:
Project Name: Microsoft/MMdnn
Commit Name: e3dbf30b449033ee584159dc0e462741d4e0e15b
Time: 2020-07-31
Author: 50827462+XiaoXYe@users.noreply.github.com
File Name: mmdnn/conversion/pytorch/pytorch_graph.py
Class Name: PytorchGraph151
Method Name: extractgraph
Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: 19f6bfac9d39794db025dc53f8921346f58080b9
Time: 2018-09-17
Author: meinhardt.tim@gmail.com
File Name: enjoy.py
Class Name:
Method Name: