UInt16ΒΆ

16-bit unsigned integer type/constructor.

Abstract Signature:

UInt16(value = 0)

PyTorch

API: β€”
Strategy: Macro 'torch.tensor({value}, dtype=torch.int16)'

JAX (Core)

API: jax.numpy.uint16
Strategy: Direct Mapping

NumPy

API: numpy.uint16
Strategy: Direct Mapping

Keras

API: keras.ops.cast
Strategy: Macro 'keras.ops.cast({value}, 'uint16')'

TensorFlow

API: tf.cast
Strategy: Macro 'tf.cast({value}, tf.uint16)'

Apple MLX

API: mlx.core.array
Strategy: Macro 'mlx.core.array({value}, dtype=mlx.core.uint16)'

Flax NNX

API: jax.numpy.uint16
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.uint16
Strategy: Direct Mapping