Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

9.8. tensorflow

9.8.1. tensorboard

		
pip inmstall tensorboard		
		
		
		
(.venv) neo@Neo-Mac-mini captcha % .venv/bin/tensorboard --logdir logs 
TensorFlow installation not found - running with reduced feature set.
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.18.0 at http://localhost:6006/ (Press CTRL+C to quit)		
		
		

9.8.2. 加载模型

			
import tensorflow as tf

model = tf.keras.models.load_model('test/seg.h5')  # 加载完整模型
print(model.summary())  #展示模型的架构
			
		

9.8.3. FAQ

9.8.3.1. This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.

			
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'