3e76bcc0528e2cd1584837162b3f286048fcd7ea,python/dgl/graph.py,DGLGraph,set_n_repr,#DGLGraph#Any#Any#Any#,550
Before Change
for key, val in hu.items():
assert F.shape(val)[0] == num_nodes
else:
assert F.shape(hu)[0] == num_nodes
// set
if is_all(u):
if utils.is_dict_like(hu):
for key, val in hu.items():
After Change
True if the update is done inplacely
// sanity check
if not utils.is_dict_like(hu):
raise DGLError("Expect dictionary type for feature data."
" Got "%s" instead." % type(hu))
if is_all(u):
num_nodes = self.number_of_nodes()
else:
u = utils.toindex(u)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: dmlc/dgl
Commit Name: 3e76bcc0528e2cd1584837162b3f286048fcd7ea
Time: 2018-10-18
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: set_n_repr
Project Name: dmlc/dgl
Commit Name: 3e76bcc0528e2cd1584837162b3f286048fcd7ea
Time: 2018-10-18
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: set_e_repr_by_id
Project Name: dmlc/dgl
Commit Name: f13b9b62121975d62df13ddb84f6a882daaae1b5
Time: 2020-08-20
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/data/graph_serialize.py
Class Name:
Method Name: load_graphs
Project Name: dmlc/dgl
Commit Name: 4bd4d6e3489bcc9c95f63eff71c0ab9aa5e1e829
Time: 2019-01-01
Author: minjie.wang@nyu.edu
File Name: python/dgl/immutable_graph_index.py
Class Name: ImmutableGraphIndex
Method Name: from_scipy_sparse_matrix