In a recent change in PyG, the module torch_geometric.utils.homophily was re-named to torc_geometric.utils._homophily and as a result, the import statement from torch_geometric.utils.homophily import homophily in graphnet.models.utils.py fails. This has caused recent checks to fails on PRs, see #662.
This PR changes the import statement
from torch_geometric.utils.homophily import homophily
In a recent change in PyG, the module
torch_geometric.utils.homophily
was re-named totorc_geometric.utils._homophily
and as a result, the import statementfrom torch_geometric.utils.homophily import homophily
ingraphnet.models.utils.py
fails. This has caused recent checks to fails on PRs, see #662.This PR changes the import statement
from torch_geometric.utils.homophily import homophily
to
from torch_geometric.utils import homophily
This change is backwards compatible.