This tutorial is awesome as it's so condensed. But there are a few things it would be cool if you'd mention in it, that really needs to be there in practice: an example on how to check arguments (for example, checking if the input tensors are contiguous) and how to return an error if they are not OK (not contiguous, out of range etc).