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

Before Change


    g.print_all()
    print(g.readout())

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

After Change


    g = mx_Graph(nx.path_graph(3))
    g.set_update_func(nn.GRUCell(4, 4))
    for n in g:
        g.set_repr(n, Var(th.rand(2, 4)))

    print("\t**before:"); g.print_all()
    g.update_from(0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: nipy/dipy
Commit Name: c841f330b09480b0bad4d8bd7f6640fa1504141b
Time: 2014-10-08
Author: marc.cote.19@gmail.com
File Name: dipy/tracking/benchmarks/bench_streamline.py
Class Name:
Method Name: bench_length


Project Name: modAL-python/modAL
Commit Name: 542f4a9abc358c5343cf6bc2d48160a42442e4a6
Time: 2017-11-20
Author: cosmic-cortex@users.noreply.github.com
File Name: tests/core_tests.py
Class Name: TestCommittee
Method Name: test_calculate_utility