Adding more explanation to @dazzle-me 's answer. I learned -ive dimension like this:
-ive dimension can come in handy when we are too lazy to figure out tensor’s dimension and then
-1 is last dimension and -2 is the second last dimension and then so on