torch.func.replace_all_batch_norm_modules_¶ torch.func.replace_all_batch_norm_modules_(root)[源]¶ 原地更新 root,通过设置 running_mean 和 running_var 为 None 并将 track_running_stats 设置为 False,对于 root 中的任何 nn.BatchNorm 模块。 返回类型 Module