Due to different tensorflow versions, some function calls may also be changed. At this time, you may need to check the tensorflow version. You can enter the query command in the terminal as follows:
python
import tensorflow as tf
tf.__version__
The query tensorflow installation path is:
tf.__path__
The query results are as follows:
pip show tensorflow