On this page
torch.func.replace_all_batch_norm_modules_
torch.func.replace_all_batch_norm_modules_(root)-
In place updates
rootby setting therunning_meanandrunning_varto be None and setting track_running_stats to be False for any nn.BatchNorm module inroot- Return type
© 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