Read element at "index" in the flattened tensor.
The shape of the tensor.
The shape of the tensor. A Shape of () represents a scalar.
Helper for equals.
Test "this" and "other" for deep equality.
Test "this" and "other" for deep equality. Allows "==" to work.
Required because of overriding equals.
Required because of overriding equals.
The number of "numbers" held in the tensor.
A Tensor is used to represent general algebraic objects more complex than scalars: vectors, matrices, tensors, pixels, and so on.
It is represented as a shaped, multidimensional array of numbers which are represented internally as a flat array of Floats. The numbers are ordered in the flat array using conventional C semantics: the rightmost index varies the fastest.