bd346cc6ec7a75f269f3178f7c7708ed48940814,examples/tgn.py,,train,#,90

Before Change


        // Update memory and neighbor loader with ground-truth state.
        memory.update_state(src, pos_dst, t, msg)
        neighbor_loader.insert(src, pos_dst, t, msg)
        neighbor_loader.insert(pos_dst, src, t, msg)

        loss.backward()
        optimizer.step()
        memory.detach()

After Change



        // Get updated memory of all nodes involved in the computation.
        z, last_update = memory(n_id)
        z = gnn(z, last_update, edge_index, data.t[e_id], data.msg[e_id])

        pos_out = link_pred(z[assoc[src]], z[assoc[pos_dst]])
        neg_out = link_pred(z[assoc[src]], z[assoc[neg_dst]])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: bd346cc6ec7a75f269f3178f7c7708ed48940814
Time: 2020-12-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/tgn.py
Class Name:
Method Name: train


Project Name: taehoonlee/tensornets
Commit Name: e2e0f0f7791731d3b7dfa989cae569c15a22cdd6
Time: 2018-05-12
Author: me@taehoonlee.com
File Name: tensornets/middles.py
Class Name:
Method Name: names_nasnets


Project Name: rusty1s/pytorch_geometric
Commit Name: bd346cc6ec7a75f269f3178f7c7708ed48940814
Time: 2020-12-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/tgn.py
Class Name:
Method Name: test