rm PD ; update NAS-Bench-102 baselines
This commit is contained in:
		| @@ -36,6 +36,7 @@ def get_cell_based_tiny_net(config): | ||||
| def get_search_spaces(xtype, name): | ||||
|   if xtype == 'cell': | ||||
|     from .cell_operations import SearchSpaceNames | ||||
|     assert name in SearchSpaceNames, 'invalid name [{:}] in {:}'.format(name, SearchSpaceNames.keys()) | ||||
|     return SearchSpaceNames[name] | ||||
|   else: | ||||
|     raise ValueError('invalid search-space type is {:}'.format(xtype)) | ||||
|   | ||||
| @@ -16,12 +16,13 @@ OPS = { | ||||
|   'skip_connect' : lambda C_in, C_out, stride, affine: Identity() if stride == 1 and C_in == C_out else FactorizedReduce(C_in, C_out, stride, affine), | ||||
| } | ||||
|  | ||||
| CONNECT_NAS_BENCHMARK  = ['none', 'skip_connect', 'nor_conv_3x3'] | ||||
| AA_NAS_BENCHMARK       = ['none', 'skip_connect', 'nor_conv_1x1', 'nor_conv_3x3', 'avg_pool_3x3'] | ||||
| CONNECT_NAS_BENCHMARK = ['none', 'skip_connect', 'nor_conv_3x3'] | ||||
| NAS_BENCH_102         = ['none', 'skip_connect', 'nor_conv_1x1', 'nor_conv_3x3', 'avg_pool_3x3'] | ||||
|  | ||||
| SearchSpaceNames = {'connect-nas' : CONNECT_NAS_BENCHMARK, | ||||
|                     'aa-nas'      : AA_NAS_BENCHMARK, | ||||
|                     'full'        : sorted(list(OPS.keys()))} | ||||
| SearchSpaceNames = {'connect-nas'  : CONNECT_NAS_BENCHMARK, | ||||
|                     'aa-nas'       : NAS_BENCH_102, | ||||
|                     'nas-bench-102': NAS_BENCH_102, | ||||
|                     'full'         : sorted(list(OPS.keys()))} | ||||
|  | ||||
|  | ||||
| class ReLUConvBN(nn.Module): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user