Correction: Not deserialize but serialize.
We want to check the value of tensors to see if we constructed it correctly, so we want to serialize tensors to files and deserialize to python to check whether the value is correct.
(BTW How can I edit my post?)