MCPcopy Create free account
hub / github.com/dmlc/dgl / target_feature_switch

Function target_feature_switch

tests/python/common/test_heterograph-kernel.py:259–265  ·  view source on GitHub ↗
(g, target)

Source from the content-addressed store, hash-verified

257 builtin_red = getattr(fn, reducer)
258
259 def target_feature_switch(g, target):
260 if target == "u":
261 return g.ndata["u"]
262 elif target == "v":
263 return g.ndata["v"]
264 else:
265 return g.edata["e"]
266
267 with F.record_grad():
268 if partial:

Callers 1

_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected