會報一個
Tensor Tensor("Placeholder:0", shape=(3, 3, 3, 16), dtype=float32) is not an element of this graph.\n\n-->\n'
的錯誤。
這是因為tensorflow的圖不能重復加載。
需要在flask程序里把debug、多線程關了。
app.run(host='0.0.0.0',port="5003",threaded=False)
刪除debug,添加threaded=False