Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update evaluator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qmpzzpmq committed Jun 12, 2023
1 parent cfb8784 commit 00b9843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nni/contrib/compression/utils/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def __init__(self, trainer: pl.Trainer, data_module: pl.LightningDataModule | L.
)
lighting2_check = not LIGHTNING2_INSTALLED and isinstance(data_module, L.LightningDataModule)
assert isinstance(data_module, pl.LightningDataModule) and is_traceable(data_module), err_msg
self.trainer = trainer
self.data_module = data_module
self.trainer: pl.Trainer | L.Trainer = trainer
self.data_module: pl.LightningDataModule | L.LightningDataModule = data_module
self._dummy_input = dummy_input

self.model: pl.LightningModule | L.LightningModule | None = None
Expand Down

0 comments on commit 00b9843

Please sign in to comment.