docstr: Applies an outer loop update on the meta-parameters of the model.
docstr_tok: ["Applies","an","outer","loop","update","on","the","meta-parameters","of","the","model","."]
code: def _outer_loop_update(self, loss):
      """Applies an outer loop update on the meta-parameters of the model."""
      self.optimizer.zero_grad()
      loss.backward()
      if self.learning_rates.requires_grad:
          self.learning_rates.grad.clamp_(-20, 20)
      self.optimizer.step()
  
file_path: PARL/benchmark/torch/maml++/maml_algorithm.py
imports: import torch
  from torch import nn
  from torch import optim
  import torch.nn.functional
  import numpy
  import parl
label_desc: Use image node_id 5 for calling the MAML obj's underlying member method code with example usage: obj._outer_loop_update(loss) without return types