wide-resnet.pytorch icon indicating copy to clipboard operation
wide-resnet.pytorch copied to clipboard

TypeError: can't multiply sequence by non-int of type 'float' in _wide_layer

Open maxmatical opened this issue 5 years ago • 1 comments

I get this issue with using the _wide_layer

     30     def make_layer(self, block, out_channels, n_blocks, dropout_rate, stride):
---> 31         strides = [stride] + [1]*(n_blocks-1)
     32         layers = []
     33 

TypeError: can't multiply sequence by non-int of type 'float'

maxmatical avatar May 09 '19 18:05 maxmatical

you simply need to convert 'n = (depth-4)/6' to 'n = (depth-4)//6'.

Brother-Lee avatar Jun 14 '19 09:06 Brother-Lee