后来去中文手册搜了以下,发现这些是函数inplace的简写。举个例子,就明白了. a = torch.tensor([2, 2]). print("a =", a). a.add_(1).
確定! 回上一頁