You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have meet the same problem today, and it may caused by a MaxPool2d operation with argument return_indices=True, because when requires indices, MaxPool2d will return a tuple, rather than a Tensor when return_indices=False.
这可能是因为你将MaxPool2d的参数return_indices设置为了True,此时MaxPool2d返回的是一个包含池化结果和下标的元组。
AttributeError: 'tuple' object has no attribute 'size'
The text was updated successfully, but these errors were encountered: