从torch.nn.init中导入_calculate_fan_in_and_fan_out来生成相同的Paddle代码:Paddle代码:fan_in, fan_out = paddle.nn.init._calculate_fan_in_and_fan_out(shape)
from torch.nn.init import _calculate_fan_in_and_fan_out生成相同的paddle代码
最新推荐文章于 2023-03-20 17:59:14 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
从torch.nn.init中导入_calculate_fan_in_and_fan_out来生成相同的Paddle代码:Paddle代码:fan_in, fan_out = paddle.nn.init._calculate_fan_in_and_fan_out(shape)