torch.nn.utils.parameters_to_vector
-
torch.nn.utils.parameters_to_vector(parameters)
[source] -
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
© 2019 Torch Contributors
Licensed under the 3-clause BSD License.
https://pytorch.org/docs/1.8.0/generated/torch.nn.utils.parameters_to_vector.html