output.append(adaptive_max_pool(im, size)) 改成 output.append(F.adaptive_max_pool2d(im, size)). 要加上引用库: import torch.nn.functional as F.
確定! 回上一頁