Skip to Main Content
机器学习设计模式
book

机器学习设计模式

by Valliappa Lakshmanan, Sara Robinson, Michael Munn
September 2022
Beginner to intermediate content levelBeginner to intermediate
386 pages
7h 36m
Chinese
Southeast University Press
Content preview from 机器学习设计模式
204
5
我们可以使用
TensorFlow
saved_model_cli
工具检查导出的文件,以确定可以在服
务中使用无状态函数签名:
saved_model_cli show --dir ${export_path} \
--tag_set serve --signature_def serving_default
输出为:
The given SavedModel SignatureDef contains the following input(s):
inputs['full_text_input'] tensor_info:
dtype: DT_STRING
shape: (-1)
name: serving_default_full_text_input:0
The given SavedModel SignatureDef contains the following output(s):
outputs['positive_review_logits'] tensor_info:
dtype: DT_FLOAT
shape: (-1, 1)
name: StatefulPartitionedCall_2:0
Method name is: tensorflow/serving/predict
该签名表明预测方法以一个单元素数组作为输入(称为
full_text_input
)(实为一
个字符串),并输出一个名为
positive_review_logits ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PyTorch深度学习

PyTorch深度学习

Posts & Telecom Press, Vishnu Subramanian
数据科学原理

数据科学原理

Posts & Telecom Press, Sinan Ozdemir
Rust程序设计

Rust程序设计

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall

Publisher Resources

ISBN: 9787564196776