analogvnn.fn.to_matrix
#
Module Contents#
Functions#
|
to_matrix takes a tensor and returns a matrix with the same values as the tensor. |
- analogvnn.fn.to_matrix.to_matrix(tensor: torch.Tensor) torch.Tensor [source]#
to_matrix takes a tensor and returns a matrix with the same values as the tensor.
- Parameters:
tensor (Tensor) – Tensor
- Returns:
Tensor with the same values as the tensor, but with shape (1, -1).
- Return type:
Tensor