I think the easiest way would be to transform your tensors to numpy arrays via arr = tensor.numpy() and then to store these arrays using scipy.io.savemat 2 to .mat files.
I’m not sure about your first question.
Could you post some dummy tensors for x, y1, and y2?