Cutensor - are negative strides allowed in cutensor?

From the documentation describing how to use cutensorInitTensorDescriptor(), I see that the stride is of type int64_t. Does this mean I can use negative values for the stride? Of course this assumes that the starting point for the tensor points up into allocated memory.

No, negative strides are never allowed. Strides have to be strictly positive.

See documentation for more details

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.