View_as_real
torch_view_as_real(self)
(Tensor) the input tensor.
Returns a view of input
as a real tensor. For an input complex tensor of
size
torch_view_as_real()
is only supported for tensors with complex dtypes
.
if (torch_is_installed()) {
if (FALSE) {
x <- torch_randn(4, dtype=torch_cfloat())
x
torch_view_as_real(x)
}
}
Run the code above in your browser using DataLab