Fix NATS-Bench and NAS-Bench-201 for removing lib
This commit is contained in:
@@ -8,16 +8,13 @@ from pathlib import Path
|
||||
from collections import defaultdict, OrderedDict
|
||||
from typing import Dict, Any, Text, List
|
||||
|
||||
lib_dir = (Path(__file__).parent / ".." / ".." / "lib").resolve()
|
||||
if str(lib_dir) not in sys.path:
|
||||
sys.path.insert(0, str(lib_dir))
|
||||
from log_utils import AverageMeter, time_string, convert_secs2time
|
||||
from config_utils import dict2config
|
||||
from xautodl.log_utils import AverageMeter, time_string, convert_secs2time
|
||||
from xautodl.config_utils import dict2config
|
||||
|
||||
# NAS-Bench-201 related module or function
|
||||
from models import CellStructure, get_cell_based_tiny_net
|
||||
from xautodl.models import CellStructure, get_cell_based_tiny_net
|
||||
from xautodl.procedures import bench_pure_evaluate as pure_evaluate, get_nas_bench_loaders
|
||||
from nas_201_api import NASBench201API, ArchResults, ResultsCount
|
||||
from procedures import bench_pure_evaluate as pure_evaluate, get_nas_bench_loaders
|
||||
|
||||
api = NASBench201API(
|
||||
"{:}/.torch/NAS-Bench-201-v1_0-e61699.pth".format(os.environ["HOME"])
|
||||
|
Reference in New Issue
Block a user