init_phases
- init_phases(x)[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- Return type
- Returns
tensor with weights set by this initializer
See also