IsSameSizeΒΆ

Returns True if two tensors have the same size.

Abstract Signature:

IsSameSize(input: Tensor, other: Tensor)

PyTorch

API: torch.is_same_size
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Macro '{input}.shape == {other}.shape'

NumPy

API: β€”
Strategy: Macro '{input}.shape == {other}.shape'

Keras

API: β€”
Strategy: Macro 'keras.ops.shape({input}) == keras.ops.shape({other})'

TensorFlow

API: β€”
Strategy: Macro '{input}.shape == {other}.shape'

Apple MLX

API: β€”
Strategy: Macro '{input}.shape == {other}.shape'

Flax NNX

API: β€”
Strategy: Macro '{input}.shape == {other}.shape'

PaxML / Praxis

API: β€”
Strategy: Macro '{input}.shape == {other}.shape'