title: What is the difference between register_parameter and register_buffer in PyTorch?
body: <p>Module's <a href="https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_buffer" rel="noreferrer">parameters</a> get changed during training, that is, they are what is learnt during training of a neural network, but what is a <a href="https://pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module.register_parameter" rel="noreferrer">buffer</a>?</p>
  <p>and is it learnt during neural network training?</p>