評價此頁

torch.func.replace_all_batch_norm_modules_#

torch.func.replace_all_batch_norm_modules_(root)[原始碼]#

就地更新 root,將 running_meanrunning_var 設定為 None,並將 track_running_stats 設定為 False,用於 root 中的任何 nn.BatchNorm 模組。

返回型別

模組