本文主要描述如何基于Tensroflow從線下訓練到線上預測的整個流程。主要包括以下幾步: 使用Python接口搭建模型訓練參數并固化成pb文件使用Bazel編譯Tensorflow源碼得到tensorflow_cc.so的動態庫調用Tensorflow C++ API編寫預測代碼
使用Python搭建模型訓練mnis
運行tensorflow程序時,遇到了各種奇葩的問題,比如: 1、Import Error: DLL load failed: The specified module could not be found 2、Importing the multiarray numpy extension module failed tensorflow 教程、3、ImportError:? Importing the multi