flask框架調用keras .h5模型報錯

問題描述 事先訓練好一個keras的神經網絡model。在某一個網站項目flask中,啓動服務的時候會把這個model加載進來,當用戶訪問某一個頁面A的時候,會調用model的預測函數。python raise ValueError("Tensor %s is not an element of this graph." % obj) ValueError: Tensor Tensor("dens
相關文章
相關標籤/搜索