Fix error type
This commit is contained in:
parent
c102fc588e
commit
183a223ee6
@ -56,7 +56,7 @@ class ConvBlock(nn.Module):
|
|||||||
elif l == 'A':
|
elif l == 'A':
|
||||||
return nn.LeakyReLU()
|
return nn.LeakyReLU()
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError('layer type {} not supported'.format(l))
|
raise ValueError('layer type {} not supported'.format(l))
|
||||||
|
|
||||||
def _setup_conv(self):
|
def _setup_conv(self):
|
||||||
self.idx_conv += 1
|
self.idx_conv += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user