Skip to content

Commit

Permalink
new: lazy attempt at #4
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Aug 3, 2022
1 parent 4bb66f1 commit aca385a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion adbpyg_adapter/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@

from typing import Any, Dict, Optional

from pandas import DataFrame
try:
# https://github.com/arangoml/pyg-adapter/issues/4
from cudf import DataFrame
except ModuleNotFoundError:
from pandas import DataFrame

from torch import Tensor, from_numpy, zeros


Expand Down
7 changes: 6 additions & 1 deletion adbpyg_adapter/typings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

from typing import Any, Callable, DefaultDict, Dict, List, Tuple, Union

from pandas import DataFrame
try:
# https://github.com/arangoml/pyg-adapter/issues/4
from cudf import DataFrame
except ModuleNotFoundError:
from pandas import DataFrame

from torch import Tensor

Json = Dict[str, Any]
Expand Down
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
from pathlib import Path
from typing import Any, Callable

try:
# https://github.com/arangoml/pyg-adapter/issues/4
from cudf import DataFrame
except ModuleNotFoundError:
from pandas import DataFrame

from arango import ArangoClient
from arango.database import StandardDatabase
from arango.http import DefaultHTTPClient
from pandas import DataFrame
from torch import Tensor, tensor
from torch_geometric.data import Data, HeteroData
from torch_geometric.datasets import Amazon, FakeDataset, FakeHeteroDataset, KarateClub
Expand Down

0 comments on commit aca385a

Please sign in to comment.