7a50be64b75a82ee4380284b4a74496d18106b0a,mx.py,,,#,97

Before Change



    print("before update:\t", g.nodes[0])
    g.update_to(0)
    print("after update:\t", g.nodes[0])
    g.print_all()

    print(g.readout())

After Change


    g.add_path([0, 1, 2])
    g.init_reprs()

    fwd_net = nn.Sequential(nn.Linear(4, 4), nn.ReLU())
    g.set_update_func(fwd_net)

    g.set_repr(0, Var(th.rand(2, 4)))
    print("\t**before:"); g.print_all()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmlc/dgl
Commit Name: 7a50be64b75a82ee4380284b4a74496d18106b0a
Time: 2018-04-22
Author: zzhang@gmail.com
File Name: mx.py
Class Name:
Method Name:


Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 8f8fbb9f6543a4ccaad53923d33647e7138d95ea
Time: 2017-10-15
Author: zhang.hang@rutgers.edu
File Name: encoding/parallel.py
Class Name: ModelDataParallel
Method Name: __init__


Project Name: arraiy/torchgeometry
Commit Name: 7a1084089da1b116d55dae0f8df871328e7d7a16
Time: 2019-01-11
Author: kaplanonu@gmail.com
File Name: test/test_jit_tracing.py
Class Name: LocalizationNetwork
Method Name: __init__