File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
from diffgram .file .file import File
2
2
from ..regular .regular import refresh_from_dict
3
3
import logging
4
- from diffgram .pytorch_diffgram .diffgram_pytorch_dataset import DiffgramPytorchDataset
5
4
from diffgram .tensorflow_diffgram .diffgram_tensorflow_dataset import DiffgramTensorflowDataset
6
5
from diffgram .core .diffgram_dataset_iterator import DiffgramDatasetIterator
7
6
from multiprocessing .pool import ThreadPool as Pool
@@ -155,6 +154,7 @@ def to_pytorch(self, transform = None):
155
154
Transforms the file list inside the dataset into a pytorch dataset.
156
155
:return:
157
156
"""
157
+ from diffgram .pytorch_diffgram .diffgram_pytorch_dataset import DiffgramPytorchDataset
158
158
file_id_list = self .file_id_list
159
159
pytorch_dataset = DiffgramPytorchDataset (
160
160
project = self .client ,
Original file line number Diff line number Diff line change 1
1
from diffgram .core .directory import Directory
2
- from diffgram .pytorch_diffgram .diffgram_pytorch_dataset import DiffgramPytorchDataset
3
2
from diffgram .tensorflow_diffgram .diffgram_tensorflow_dataset import DiffgramTensorflowDataset
4
3
import urllib
5
4
@@ -37,7 +36,7 @@ def to_pytorch(self, transform = None):
37
36
Transforms the file list inside the dataset into a pytorch dataset.
38
37
:return:
39
38
"""
40
-
39
+ from diffgram . pytorch_diffgram . diffgram_pytorch_dataset import DiffgramPytorchDataset
41
40
pytorch_dataset = DiffgramPytorchDataset (
42
41
project = self .client ,
43
42
diffgram_file_id_list = self .file_id_list ,
You can’t perform that action at this time.
0 commit comments