Skip to content

Commit

Permalink
fix dgl dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerum committed Aug 23, 2024
1 parent b348430 commit f563374
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 17 deletions.
1 change: 0 additions & 1 deletion hannah/nas/test/test_nas_graph_dataset_for_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def test_online_dataset():
nx_graph = model_to_graph(model, x)
fea = get_features(nx_graph)

fea = fea.astype('float32')
for i, n in enumerate(nx_graph.nodes):
nx_graph.nodes[n]['features'] = fea.iloc[i].to_numpy()
dgl_graph = to_dgl_graph(nx_graph)
Expand Down
157 changes: 146 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,19 @@ lightning = "^2.4.0"
onnx = "^1.16.0"
spox = "^0.12.0"
optree = "^0.11.0"
dgl = {version = "^2.3.0", source = "dgl-cu"}
pydantic = "^2.8.2"
dgl = [
{platform = 'linux', python='~3.9', url = "https://data.dgl.ai/wheels/torch-2.3/cu121/dgl-2.3.0%2Bcu121-cp39-cp39-manylinux1_x86_64.whl"},
{platform = 'linux', python='~3.10', url = "https://data.dgl.ai/wheels/torch-2.3/cu121/dgl-2.3.0%2Bcu121-cp310-cp310-manylinux1_x86_64.whl"},
{platform = 'linux', python='~3.11', url = "https://data.dgl.ai/wheels/torch-2.3/cu121/dgl-2.3.0%2Bcu121-cp311-cp311-manylinux1_x86_64.whl"},
{platform = 'linux', python='~3.12', url = "https://data.dgl.ai/wheels/torch-2.3/cu121/dgl-2.3.0%2Bcu121-cp312-cp312-manylinux1_x86_64.whl"},

]






[tool.poetry.dev-dependencies]
pytest = ">=7.2.0"
Expand Down Expand Up @@ -102,10 +113,6 @@ ipykernel = "^6.29.4"
ruff = "^0.5.5"


[[tool.poetry.source]]
name = "dgl-cu"
url = "https://data.dgl.ai/wheels/torch-2.3/cu121/repo.html"
priority = "explicit"

[build-system]
requires = ["poetry>=0.12"]
Expand Down

0 comments on commit f563374

Please sign in to comment.