UInt8ΒΆ

8-bit unsigned integer type/constructor.

Abstract Signature:

UInt8(value = 0)

PyTorch

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

JAX (Core)

API: jax.numpy.uint8
Strategy: Direct Mapping

NumPy

API: numpy.uint8
Strategy: Direct Mapping

Keras

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

TensorFlow

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

Apple MLX

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

Flax NNX

API: jax.numpy.uint8
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.uint8
Strategy: Direct Mapping