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

Function check_pytorch

python/dgl/homophily.py:20–25  ·  view source on GitHub ↗

Check if PyTorch is the backend.

()

Source from the content-addressed store, hash-verified

18
19
20def check_pytorch():
21 """Check if PyTorch is the backend."""
22 if HAS_TORCH is False:
23 raise ModuleNotFoundError(
24 "This function requires PyTorch to be the backend."
25 )
26
27
28def get_long_edges(graph):

Callers 4

node_homophilyFunction · 0.70
edge_homophilyFunction · 0.70
linkx_homophilyFunction · 0.70
adjusted_homophilyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected