4673b96f9298bc6e8ad25adbde0bfd17d57ff232,python/dgl/graph.py,DGLGraph,set_n_repr,#DGLGraph#Any#Any#,98
Before Change
else:
if isinstance(hu, dict):
for key, val in hu.items():
self._node_frame[key][u] = val
else:
self._node_frame[__REPR__][u] = hu
def get_n_repr(self, u=ALL):
Get node(s) representation.
After Change
else:
if isinstance(hu, dict):
for key, val in hu.items():
self._node_frame[key] = F.scatter_row(self._node_frame[key], u, val)
else:
self._node_frame[__REPR__] = F.scatter_row(self._node_frame[__REPR__], u, hu)
def get_n_repr(self, u=ALL):
Get node(s) representation.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: dmlc/dgl
Commit Name: 4673b96f9298bc6e8ad25adbde0bfd17d57ff232
Time: 2018-08-09
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: set_n_repr
Project Name: dmlc/dgl
Commit Name: 4673b96f9298bc6e8ad25adbde0bfd17d57ff232
Time: 2018-08-09
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: set_e_repr_by_id
Project Name: dmlc/dgl
Commit Name: 4673b96f9298bc6e8ad25adbde0bfd17d57ff232
Time: 2018-08-09
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: set_n_repr
Project Name: dmlc/dgl
Commit Name: 4673b96f9298bc6e8ad25adbde0bfd17d57ff232
Time: 2018-08-09
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: set_e_repr