1. An apparatus for processing an instruction for accessing a N-dimensional tensor, the apparatus comprising: multiple tensor index elements; multiple dimension multiplier elements, wherein each of the dimension multiplier elements has a corresponding tensor index element; and one or more processors configured to: obtain an instruction to access a particular element of a N-dimensional tensor, wherein the N-dimensional tensor has multiple elements arranged across each of the N dimensions, and wherein N is an integer that is equal to or greater than one; determine, using one or more tensor index elements of the multiple tensor index elements and one or more dimension multiplier elements of the multiple dimension multiplier elements, an address of the particular element; and output data indicating the determined address for accessing the particular element of the N-dimensional tensor.