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):
调换下形参的位置就解决了。。。
长见识了
上一篇: 笨办法学Python笔记-习题1
下一篇: C# 内部类与Lambda表达式用法详解
推荐阅读
-
RuntimeError: non-positive stride is not supported
-
【pytorch】RuntimeError: Integer division of tensors using div or / is no longer supported
-
【pytorch】RuntimeError: Integer division of tensors using div or / is no longer supported【解决】
-
【pytorch】【解决】RuntimeError: Integer division of tensors using div or / is no longer supported
-
RuntimeError: view size is not compatible with input tensor‘s size and stride
-
PyTorch 错误 RuntimeError: view size is not compatible with input tensor‘s size and stride (at least o
-
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future rel
-
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future rel
-
RuntimeError: view size is not compatible with input tensor‘s size and stride
-
RuntimeError: view size is not compatible with input tensor‘s size and stride解决记录