Shortcuts

torch._foreach_neg_

torch._foreach_neg_(self: List[张量]) None

对输入列表中的每个张量应用 torch.neg()

优云智算