-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from asogaard/fix-torch-in-data
Fix torch import in graphnet.data
- Loading branch information
Showing
8 changed files
with
54 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
from graphnet.utilities.imports import has_torch_package | ||
|
||
from .parquet_dataconverter import ParquetDataConverter | ||
from .parquet_dataset import ParquetDataset | ||
|
||
if has_torch_package(): | ||
from .parquet_dataset import ParquetDataset | ||
|
||
del has_torch_package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
from graphnet.utilities.imports import has_torch_package | ||
|
||
from .sqlite_dataconverter import SQLiteDataConverter | ||
from .sqlite_dataset import SQLiteDataset | ||
from .sqlite_dataset_perturbed import SQLiteDatasetPerturbed | ||
from .sqlite_utilities import run_sql_code, save_to_sql | ||
|
||
if has_torch_package(): | ||
from .sqlite_dataset import SQLiteDataset | ||
from .sqlite_dataset_perturbed import SQLiteDatasetPerturbed | ||
|
||
del has_torch_package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters