PromoteTypesΒΆ

Returns the type to which a binary operation should cast its arguments.

Abstract Signature:

PromoteTypes(a: DType, b: 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