premature deallocation of temporary tensors in python
indexing a temporary tensor leads to invalid memory access. the lifetime of the tensor likely has to be bound to the lifetime of the resulting indexed tensor somehow...
eg.
xe.frob_norm(xe.Tensor.identity({10,10})(i&0))