模型开发接口
推理部署接口
API 相关说明
使用从 U(−a,a) 中随机采样值填入 tensor 。其中,
tensor
又称Glorot初始化。详细的说明可以参考 “Understanding the difficulty of training deep feedforward neural networks” 。
tensor (Tensor) – 待初始化的n维张量。
Tensor
gain (float) – a 的比例因子。
float
None
上一页
megengine.module.init.calculate_correct_fan
下一页
megengine.module.init.xavier_normal_