code: def set_bn_eval(m:nn.Module)->None:
      "Set bn layers in eval mode for all recursive children of `m`."
      for l in m.children():
          if isinstance(l, bn_types) and not next(l.parameters()).requires_grad:
              l.eval()
          set_bn_eval(lf set_bn_eval(m:nn.Module)->None:
      "Set bn layers in eval mode for all recursive children of `m`."
      for l in m.children():
          if isinstance(l, bn_types) and not next(l.parameters()).requires_grad:
              l.eval()
          set_bn_eval(l)
docs: Set bn layers in eval mode for all recursive children of `m`.