PromoteTypesΒΆ

Returns the dtype with the smallest size and scalar kind that is not smaller than either type1 or type2.

Abstract Signature:

PromoteTypes(type1: DType, type2: DType)

PyTorch

API: torch.promote_types
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.promote_types
Strategy: Direct Mapping

NumPy

API: numpy.promote_types
Strategy: Direct Mapping

Keras

API: β€”
Strategy: Custom / Partial

TensorFlow

API: tf.experimental.numpy.promote_types
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial

Flax NNX

API: jax.numpy.promote_types
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.promote_types
Strategy: Direct Mapping