Revert "new fix for tensor.py"

This reverts commit ad6a0a399f9f272bf0fb7dca1bbd943b756a5c7a.
fixed ga.py