(Tensor) the input tensor.
Returns a view of
input as a complex tensor. For an input complex
size m1, m2, …, mi, 2, this function returns a
new complex tensor of
size m1, m2, …, mi where the last
dimension of the input tensor is expected to represent the real and imaginary
components of complex numbers.
torch_view_as_complex is only supported for tensors with
torch_float32(). The input is
expected to have the last dimension of
size 2. In addition, the
tensor must have a
stride of 1 for its last dimension. The strides of all
other dimensions must be even numbers.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.