added basic distributed logic for trainer

This commit is contained in:
evonneng committed 2022-04-15 01:04:17 +00:00
1 parent 4b131d4358
commit 7dc9d445b2
4 files changed
+71 -9

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
world_size: 0
network:
mlp_0:
class_name: MLP
+15
View File
@@ -0,0 +1,15 @@
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()