pytorch / 2 / generated / torch.func.replace_all_batch_norm_modules_.html

torch.func.replace_all_batch_norm_modules_

torch.func.replace_all_batch_norm_modules_(root)

In place updates root by setting the running_mean and running_var to be None and setting track_running_stats to be False for any nn.BatchNorm module in root

Return type

Module

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.func.replace_all_batch_norm_modules_.html