wide-resnet.pytorch
wide-resnet.pytorch copied to clipboard
TypeError: can't multiply sequence by non-int of type 'float' in _wide_layer
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'
you simply need to convert 'n = (depth-4)/6' to 'n = (depth-4)//6'.