mode:‘fan_in’ (default)或者‘fan_out’. 使用fan_in保持weights的方差在前向传播中不变;使用fan_out保持weights的方差在反向传播中不变。
在使用过程中,一般都要默认设置fan_out
见Pytorch官网详解

mode:‘fan_in’ (default)或者‘fan_out’. 使用fan_in保持weights的方差在前向传播中不变;使用fan_out保持weights的方差在反向传播中不变。
在使用过程中,一般都要默认设置fan_out
见Pytorch官网详解