ViewAsReal ========== Views a complex tensor as a real tensor. **Abstract Signature:** ``ViewAsReal(x: Tensor)`` .. raw:: html

PyTorch

API: torch.view_as_real
Strategy: Direct Mapping

JAX (Core)

API:
Strategy: Macro 'jax.numpy.stack([jax.numpy.real({x}), jax.numpy.imag({x})], axis=-1)'

NumPy

API:
Strategy: Macro 'numpy.stack([numpy.real({x}), numpy.imag({x})], axis=-1)'

Keras

API:
Strategy: Custom / Partial

TensorFlow

API: tf.math.real
Strategy: Macro 'tf.stack([tf.math.real({x}), tf.math.imag({x})], axis=-1)'

Apple MLX

API:
Strategy: Custom / Partial

Flax NNX

API:
Strategy: Macro 'jax.numpy.stack([jax.numpy.real({x}), jax.numpy.imag({x})], axis=-1)'

PaxML / Praxis

API:
Strategy: Macro 'jax.numpy.stack([jax.numpy.real({x}), jax.numpy.imag({x})], axis=-1)'