EmptyLikeΒΆ

Return a new array with the same shape and type as a given array.

Abstract Signature:

EmptyLike(prototype: Tensor, dtype: DType | None, shape: int | tuple | None)

PyTorch

API: torch.empty_like
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.empty_like
Strategy: Direct Mapping

NumPy

API: numpy.empty_like
Strategy: Direct Mapping