Update tensor_methods.py