MCPcopy Create free account
hub / github.com/DropEdge/DropEdge / _preprocess_adj

Method _preprocess_adj

src/sample.py:48–54  ·  view source on GitHub ↗
(self, normalization, adj, cuda)

Source from the content-addressed store, hash-verified

46 self.degree_p = None
47
48 def _preprocess_adj(self, normalization, adj, cuda):
49 adj_normalizer = fetch_normalization(normalization)
50 r_adj = adj_normalizer(adj)
51 r_adj = sparse_mx_to_torch_sparse_tensor(r_adj).float()
52 if cuda:
53 r_adj = r_adj.cuda()
54 return r_adj
55
56 def _preprocess_fea(self, fea, cuda):
57 if cuda:

Callers 5

stub_samplerMethod · 0.95
randomedge_samplerMethod · 0.95
vertex_samplerMethod · 0.95
degree_samplerMethod · 0.95
get_test_setMethod · 0.95

Calls 2

fetch_normalizationFunction · 0.90

Tested by

no test coverage detected