update affines for NAS
This commit is contained in:
@@ -19,9 +19,9 @@ class InferCell(nn.Module):
|
||||
cur_innod = []
|
||||
for (op_name, op_in) in node_info:
|
||||
if op_in == 0:
|
||||
layer = OPS[op_name](C_in , C_out, stride)
|
||||
layer = OPS[op_name](C_in , C_out, stride, True)
|
||||
else:
|
||||
layer = OPS[op_name](C_out, C_out, 1)
|
||||
layer = OPS[op_name](C_out, C_out, 1, True)
|
||||
cur_index.append( len(self.layers) )
|
||||
cur_innod.append( op_in )
|
||||
self.layers.append( layer )
|
||||
|
@@ -22,7 +22,7 @@ class TinyNetwork(nn.Module):
|
||||
self.cells = nn.ModuleList()
|
||||
for index, (C_curr, reduction) in enumerate(zip(layer_channels, layer_reductions)):
|
||||
if reduction:
|
||||
cell = ResNetBasicblock(C_prev, C_curr, 2)
|
||||
cell = ResNetBasicblock(C_prev, C_curr, 2, True)
|
||||
else:
|
||||
cell = InferCell(genotype, C_prev, C_curr, 1)
|
||||
self.cells.append( cell )
|
||||
|
Reference in New Issue
Block a user