欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

RuntimeError: non-positive stride is not supported

程序员文章站 2022-06-15 19:10:59
...

应该是遇到过的最离谱的bug。。。。。

def __init__(self, in_channel, out_channel, group=32, s=1, n=0):

这样是错的;

def __init__(self, in_channel, out_channel, s=1, n=0, group=32):

调换下形参的位置就解决了。。。
长见识了

相关标签: 神奇的bug python