本文記錄 TensorFlow 使用過程中遇到的一些問題,不定期更新。
1、查看 TensorFlow 版本
python
import tensorflow as tf
tf.__version__
或者
python -c "import tensorflow; print tensorflow.__version__"
2、查詢 TensorFlow 版本的安裝路徑
在上一步中:
tf.__path__
本文記錄 TensorFlow 使用過程中遇到的一些問題,不定期更新。
1、查看 TensorFlow 版本
python
import tensorflow as tf
tf.__version__
或者
python -c "import tensorflow; print tensorflow.__version__"
2、查詢 TensorFlow 版本的安裝路徑
在上一步中:
tf.__path__
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta