torch.Tensor.add¶ Tensor.add(other, *, alpha=1) → Tensor¶ 将标量或张量添加到 self 张量。如果指定了 alpha 和 other ,则将 other 的每个元素乘以 alpha 后使用。 当 other 是一个张量时, other 的形状必须与底层张量的形状可广播 查看 torch.add()