You can't put a PyTorch function in a nn.Sequential pipeline, it needs to be a nn.Module . You could wrap it like this: class Square(nn.
確定! 回上一頁