News for hackers. Stuff that matters.
Re:AI Researcher wants computer scientists to move beyond th... by esperent on Monday September 05, 2022 @08:39PM (#32731198)
How would you represent a tensor in code, if not by using a multidimensional array?

Ok, you could use a flat array and index into it depending on the dimensions of the tensor (as is often done for matrices), but that's really just a way of saving ram or cpu cycles rather than a different representation.

Re:AI Researcher wants computer scientists to move beyond th... by boulos on Monday September 05, 2022 @09:29PM (#32731558)
The point is that just because something can be represented as the result of malloc(), doesn't make the data structure the same as that thing. That is, what is:

float* x = malloc(width*height*channels*sizeof(float))

Is x an "Image"? Is x a "tensor"? Is x a "raster"?

For tensors specifically, if x is not itself the product of vector spaces, then it's not a tensor.

tl;dr: While every rank-N tensor can be represented with multidimensional arrays, not all multidimensional arrays are rank-N tensors.

Re:AI Researcher wants computer scientists to move beyond th... by sudosysgen on Monday September 05, 2022 @11:01PM (#32732254)
They are isomorphic. That's as close as equal you're ever gonna get - it's turtles all the way down.