摘要: movie.csv 代码 阅读全文
posted @ 2022-02-18 16:52 qiaokuankuan 阅读(39) 评论(0) 推荐(0)
摘要: # TensorFlow Serving部署 # 服务器端,安装TensorFlow Serving tensorflow_model_server \ --rest_api_port=端口号(如8501) \ --model_name=模型名 \ --model_base_path="SavedM 阅读全文
posted @ 2022-02-18 11:20 qiaokuankuan 阅读(90) 评论(0) 推荐(0)
摘要: # TensorFlow 模型导出 mport tensorflow as tf from zh.model.utils import MNISTLoader num_epochs = 1 batch_size = 50 learning_rate = 0.001 model = tf.keras. 阅读全文
posted @ 2022-02-18 11:10 qiaokuankuan 阅读(205) 评论(0) 推荐(0)
摘要: #tf.function :图执行模式 # 基础使用 import tensorflow as tf import time from zh.model.mnist.cnn import CNN from zh.model.utils import MNISTLoader num_batches = 阅读全文
posted @ 2022-02-18 11:01 qiaokuankuan 阅读(33) 评论(0) 推荐(0)
摘要: # TFRecord 数据集存储格式 import tensorflow as tf import os data_dir = 'C:/datasets/cats_vs_dogs' train_cats_dir = data_dir + '/train/cats/' train_dogs_dir = 阅读全文
posted @ 2022-02-18 10:52 qiaokuankuan 阅读(29) 评论(0) 推荐(0)