Update the query_by_arch function in API to be compatiable with the submission version of NAS-Bench-201

This commit is contained in:
D-X-Y
2020-07-08 04:05:55 +00:00
parent cba4741d10
commit 4892692622
2 changed files with 5 additions and 1 deletions

View File

@@ -90,6 +90,10 @@ class NASBenchMetaAPI(metaclass=abc.ABCMeta):
else: arch_index = -1
return arch_index
def query_by_arch(self, arch, hp):
# This is to make the current version be compatible with the old version.
return self.query_info_str_by_arch(arch, hp)
@abc.abstractmethod
def reload(self, archive_root: Text = None, index: int = None):
"""Overwrite all information of the 'index'-th architecture in the search space, where the data will be loaded from 'archive_root'.