-en:Transition from the old representation[](#transition-from-the-old-representation
"Permalink to this heading")
id:totrans-14
prefs:
-PREF_H2
type:TYPE_NORMAL
zh:从旧表示形式过渡[](#transition-from-the-old-representation "Permalink to this heading")
-en:Users who currently worked around the lack of complex tensors with real tensors
of shape $(..., 2)$(...,2)
can easily to switch using the complex tensors in their code using [`torch.view_as_complex()`](generated/torch.view_as_complex.html#torch.view_as_complex
of shape $(..., 2)$(...,2) can easily to switch using the complex tensors in their
code using [`torch.view_as_complex()`](generated/torch.view_as_complex.html#torch.view_as_complex
"torch.view_as_complex") and [`torch.view_as_real()`](generated/torch.view_as_real.html#torch.view_as_real
"torch.view_as_real"). Note that these functions don’t perform any copy and return