NdimΒΆ
Return the number of dimensions of an array.
Abstract Signature:
Ndim(a: Tensor)
PyTorch
API:
ndimStrategy: Macro '{a}.ndim'
Keras
API:
ndimStrategy: Macro 'len({a}.shape)'
TensorFlow
API:
tf.rankStrategy: Macro '{a}.ndim'
Apple MLX
API:
ndimStrategy: Macro '{a}.ndim'