Skip to content

Commit 9749a30

Browse files
authored
Merge pull request #3 from akhauriyash/main
Fixed FLOPS fetching
2 parents 575355f + 8889f37 commit 9749a30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nasbench_asr/dataset.py

+6
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ def params(self, *args, **kwargs):
466466

467467
return self.static_info.params(*args, **kwargs)
468468

469+
@functools.wraps(StaticInfoDataset.flops)
470+
def flops(self, *args, **kwargs):
471+
if not self.static_info:
472+
raise ValueError('No static information attached')
473+
474+
return self.static_info.flops(*args, **kwargs)
469475

470476

471477
def from_folder(folder, max_epochs=None, seeds=None, devices=None, include_static_info=False, validate_data=True):

0 commit comments

Comments
 (0)