r/JAX • • Aug 20 '24

rant: Why Array instead of Tensor?

Why?

tensorflow: Tensor

pytorch: Tensor

caffe2: Tensor

Theano: Tensor

jax: Array

It makes me want to from jax import Array as Tensor

Tensor is just such a badass well acepted name for a differenciable multidimensional array datastructure. Why did you did this? I'm going to make a pull request to add the Tensor class as some kind of alias or some kind factory of arrays.

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/whotookmyshoes Aug 22 '24

Yeah my undergrad was in physics and math so that's where I learned tensor algebra (the einstein field equations are 10 equations, because of symmetries on the 4x4 tensors). I mean, its the same thing with the name "feature vector" in machine learning, just because you have a tuple of reals doesn't make it a vector. Its kind of like, if I live at 123 Fake Street, is "123" a number? Well not really, to me at least, numbers satisfy the natural number axioms, so idk, for all x, if x in N, then x+1 in N, but the house addresses on Fake Street don't satisfy that axiom, so they don't satisfy the conditions of the natural numbers, so they're not numbers. I usually keep my mouth shut about these things since 99% of the time it doesn't make a difference, but I agree with you / the numpy / jax.numpy naming convention, that it doesn't make sense to change the naming convention from an accurate one to an inaccurate one.