TensorFlow

在2023年整合 TensorFlow Go (2.14.0) 和 OpenCV Go (4.8.1) 的方法 | by Jason Kuan | Nov, 2023

一般而言,如果你的程式會需要 TensorFlow model來推論時,普遍的作法會使用TensorFlow Serving API來解決,serving在你給他有哪些模型後,它會自己管理資源,我的程式再透過grpc去溝通。但有些時候,在做一些簡單的應用時,你想要直接把讀取模型的部份直接寫在程式內時,通常就必須額外花心力去查找你所使用的語言該如何使用,而以下就是我在使用Golang時整理的方法。 在使用之前,我發現TensorFlow官方已經不再支援Golang,目前專案轉由社群來支持。 The TensorFlow team is not currently maintaning the Documentation for installing the Go bindings for TensorFlow. 而實際我們使用的 Golang TensorFlow 底層實際是C語言,所以需要先在自己的電腦環境中安裝 libtensorflow。以我目前寫這篇文章所用的版本是libtensorflow-cpu-linux-x86_64–2.14.0.tar.gz。 官方libtensorflow安裝文件(不建議閱讀中文版,因為很久沒更新) 照文件安裝後,用gcc編譯執行測試後,應該能看到下面這行 Hello from TensorFlow C library version […]

TensorFlow

Where is Apple’s AI? – IO

Apple’s CEO, Tim Cook, recently unveiled the company’s substantial investments in generative artificial intelligence (AI). While many Apple products harness the power of AI, it remains somewhat concealed, unlike standalone AI products like Bard or […]