updated logic within Trainer class to allow for multiprocess training

This commit is contained in:
evonneng committed 2022-04-15 21:53:35 +00:00
1 parent ac3e7515ef
commit 62d4218421
3 files changed
+17 -24

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
from tty import CFLAG
import pytest
import runpy
from mattport.nerf.trainer import Trainer
from hydra import compose, initialize
CONFIG_DIR = "configs"
def test_multiprocess_train():
"""Test for trainer to validate distributed data parallel working."""
with initialize(config_path=CONFIG_DIR):
cfg = compose(config_name='test_basic_graph')
trainer = Trainer(cfg)
trainer.run_multiprocess_train()