Skip to content

Commit d5ee4d1

Browse files
committed
Remove manual calls to datamodule methods
1 parent 44e9102 commit d5ee4d1

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

code2seq/code2class_wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def test_code2class(config: DictConfig):
3939

4040
# Load data module
4141
data_module = PathContextDataModule(config.data_folder, config.data)
42-
data_module.prepare_data()
43-
data_module.setup()
4442

4543
# Load model
4644
code2class = Code2Class.load_from_checkpoint(config.checkpoint, map_location=torch.device("cpu"))

code2seq/code2seq_wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def test_code2seq(config: DictConfig):
3939

4040
# Load data module
4141
data_module = PathContextDataModule(config.data_folder, config.data)
42-
data_module.prepare_data()
43-
data_module.setup()
4442

4543
# Load model
4644
code2seq = Code2Seq.load_from_checkpoint(config.checkpoint, map_location=torch.device("cpu"))

code2seq/typed_code2seq_wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def test_typed_code2seq(config: DictConfig):
3939

4040
# Load data module
4141
data_module = TypedPathContextDataModule(config.data_folder, config.data)
42-
data_module.prepare_data()
43-
data_module.setup()
4442

4543
# Load model
4644
typed_code2seq = TypedCode2Seq.load_from_checkpoint(config.checkpoint, map_location=torch.device("cpu"))

0 commit comments

Comments
 (0)