Skip to content

Commit

Permalink
Tester works with regression model
Browse files Browse the repository at this point in the history
  • Loading branch information
Ming Du committed Jun 4, 2024
1 parent 1a74fb0 commit cf8ed6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generic_trainer/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import tqdm

import generic_trainer.trainer as trainer
from generic_trainer.trainer import LossTracker
from generic_trainer.configs import *
from generic_trainer.inference_util import *

Expand All @@ -25,6 +26,7 @@ class Tester(trainer.Trainer):

def __init__(self, configs: InferenceConfig):
super().__init__(configs, skip_init=True)
self.loss_tracker = None
self.rank = 0
self.num_processes = 1
self.gatekeeper = None
Expand All @@ -51,6 +53,7 @@ def build(self):
self.build_ranks()
self.build_scalable_parameters()
self.build_device()
self.build_loss_tracker()
self.build_dataset()
self.build_dataloaders()
self.build_model()
Expand Down

0 comments on commit cf8ed6f

Please sign in to comment.