init_phases
- init_phases(x: Tensor) Tensor [source]
Generate random phases between 0 and \(2\pi\).
Note
This method works on the canonical torch real representation of complex tensors, cf. https://pytorch.org/docs/stable/complex_numbers.html
- Parameters:
x (Tensor) – a tensor to initialize
- Returns:
tensor with weights set by this initializer
- Return type:
See also