简体   繁体   English

如何在 Swift 中运行 tf2.0 model

[英]How to run a tf2.0 model in Swift

I have a TF 2.0 model in TfLite form.我有一个 TfLite 形式的 TF 2.0 model。 How do I run this in swift?如何在 swift 中运行它? When I run it in python, it takes in an array of size (1, 96, 64, 1)... I have an array of this size in swift, how do I use this as input into the model?当我在 python 中运行它时,它接受一个大小为(1、96、64、1)的数组...我在 swift 中有一个这个大小的数组,我如何将它用作 Z20F35E630DAF44DBFA8DC4C396 的输入? Thanks!!谢谢!!

Any help is greatly appreciated.任何帮助是极大的赞赏。

There is a complete course about using TensorFlow Lite on both Android and iOS on Coursera . Coursera上有一个关于在 Android 和 iOS 上使用 TensorFlow Lite 的完整课程。 3rd week of the course fully covers end-to-end integration TF Lite with Swift.第 3 周的课程全面涵盖了 TF Lite 与 Swift 的端到端集成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM