Skip to content
Snippets Groups Projects
Commit 4c5b8d9b authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Fixed a bug in FLOP computation

parent 0d518aba
No related branches found
No related tags found
No related merge requests found
......@@ -229,7 +229,7 @@ class TorchApp(ModeledApp, abc.ABC):
return module_indexer.module
def _sample_input(self):
inputs, _ = next(iter(self.tune_loader))
inputs, _ = next(iter(DataLoader(self.tune_loader.dataset, batch_size=1)))
return inputs.to(self.device)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment