torch.nn.utils.parameters_to_vector
torch.nn.utils.parameters_to_vector(parameters)
Convert parameters to one vector
Parameters:
      parameters (Iterable[Tensor]) -- an iterator of
      Tensors that are the parameters of a model.
Returns:
      The parameters represented by a single vector
Return type:
      Tensor