megengine.module.init.ones_# ones_(tensor)[源代码]# 使用标量值 1 填入给定的 tensor。 参数: tensor (Tensor) – 待初始化的n维张量。 返回类型: None