Skip to Content
移动端AI与ML应用开发:基于iOS和Android
book

移动端AI与ML应用开发:基于iOS和Android

by Laurence Moroney
January 2023
Intermediate to advanced
288 pages
6h 6m
Chinese
China Machine Press
Content preview from 移动端AI与ML应用开发:基于iOS和Android
248
14
从移动应用程序访问基于云的模型
纵观全书,你一直在创建模型并将它们转换为 TensorFlow Lite 格式,以便它们可以在你
的移动应用程序中使用。考虑到第 1 章中讨论的原因,例如延迟和隐私,这对于你想在
移动设备上使用的模型非常有效。但是,有时你不想将模型部署到移动设备上
可能
它对于移动设备来说太大、太复杂,可能你想经常更新它,或者你不想冒着被逆向工程
的风险让其他人使用你的 IP
在这些情况下,你需要将模型部署到服务器,在那里执行推理,然后让某种形式的服务
器来管理来自客户端的请求,调用模型进行推理,并对结果进行响应。图 14-1 显示了这
种情况的高级视图。
请求
响应
输入层
输出层
隐藏层
14-1
:模型服务器架构的高级视图
这种架构的另一个好处是管理多个模型。当你将模型部署到设备时,如果人们没有或不
能更新应用程序以获取最新模型,你最终可能会遇到多个模型的情况。考虑你想要多
个模型的场景,也许拥有更高级硬件的人可以拥有更大、更准确的模型版本,而其他人
可以获得更小且准确度稍低的版本。管理这可能很困难!但是,如果模型托管在服务器
上,你就不必担心这一点,因为你可以控制模型运行的硬件平台。服务器端模型推理的
另一个优点是你可以轻松地测试不同受众的不同模型版本,如图 14-2 所示。
正文.indd 248正文.indd 248 2023-4-30 9:10:282023-4-30 9:10:28
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能驱动的商业智能

人工智能驱动的商业智能

Tobias Zwingmann
Lua游戏AI开发指南

Lua游戏AI开发指南

Posts & Telecom Press, David Young
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9787111713081