In some tensor methods we use negative dim to indicate that we won't use the argument. The problem is that negative indices can be used to express reverse index like (-1) will use the last dimension.
We need to find a way to pass a NULL value and decide which tensor method to use inside the cpp code.
In some tensor methods we use negative
dim
to indicate that we won't use the argument. The problem is that negative indices can be used to express reverse index like (-1) will use the last dimension.We need to find a way to pass a NULL value and decide which tensor method to use inside the cpp code.