eafcb7e7f55d385099a9289b275e8371897edb9f,python/dgl/runtime/spmv.py,,build_adj_matrix_graph,#Any#,125

Before Change


    utils.CtxCachedObject
        Get be used to get adjacency matrix on the provided ctx.
    
    return utils.CtxCachedObject(lambda ctx : graph.adjacency_matrix(ctx=ctx))

def build_adj_matrix_index_uv(graph, edges, reduce_nodes):
    Build adj matrix index and shape using the given (u, v) edges.

After Change


        if shuffle is not required.
    
    adjmat, shuffle_idx = graph._graph.adjacency_matrix(transpose=False, ctx=F.cpu())
    return utils.CtxCachedObject(lambda ctx : F.copy_to(adjmat, ctx)), shuffle_idx

def _build_adj_matrix_index_uv(graph, edges, reduce_nodes):
    Build adj matrix index and shape using the given (u, v) edges.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: eafcb7e7f55d385099a9289b275e8371897edb9f
Time: 2018-12-05
Author: minjie.wang@nyu.edu
File Name: python/dgl/runtime/spmv.py
Class Name:
Method Name: build_adj_matrix_graph


Project Name: dmlc/dgl
Commit Name: eafcb7e7f55d385099a9289b275e8371897edb9f
Time: 2018-12-05
Author: minjie.wang@nyu.edu
File Name: python/dgl/runtime/spmv.py
Class Name:
Method Name: build_inc_matrix_eid


Project Name: dmlc/dgl
Commit Name: eafcb7e7f55d385099a9289b275e8371897edb9f
Time: 2018-12-05
Author: minjie.wang@nyu.edu
File Name: python/dgl/runtime/spmv.py
Class Name:
Method Name: build_adj_matrix_uv


Project Name: dmlc/dgl
Commit Name: eafcb7e7f55d385099a9289b275e8371897edb9f
Time: 2018-12-05
Author: minjie.wang@nyu.edu
File Name: python/dgl/runtime/spmv.py
Class Name:
Method Name: build_inc_matrix_graph