MCPcopy
hub / github.com/dmlc/dgl / predicate

Function predicate

tests/python/common/utils/test_filter.py:26–27  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

24 g.edata["a"] = e_repr
25
26 def predicate(r):
27 return F.max(r.data["a"], 1) > 0
28
29 # full node filter
30 n_idx = g.filter_nodes(predicate)

Callers 2

filter_nodesMethod · 0.85
filter_edgesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected