模型开发接口
推理部署接口
API 相关说明
Fills the given tensor with random value sampled from uniform distribution \(\mathcal{U}(\text{a}, \text{b})\).
tensor
tensor (Tensor) – tensor to be initialized.
Tensor
a (float) – lower bound of the sampling interval.
float
b (float) – upper bound of the sampling interval.
None
previous
megengine.module.init.ones_
next
megengine.module.init.normal_