zeros_

class paddle.nn.init. zeros_ ( tensor ) [源代码]

将输入张量的值设置为 0,该操作会直接修改输入张量。

参数

  • tensor (Tensor) - 输入张量。