調用tensorflow中的concat方法時Expected int32, got list containing Tensors of type '_Message' instead.


grid  =  tf.concat( 0 , [x_t_flat, y_t_flat, ones]) #報錯語句
grid  =  tf.concat( [x_t_flat, y_t_flat, ones], 0 #樓主改后的代碼
將數字放在后面,如果有三個參數
 decoder_inputs = tf.concat([go_inputs, decoder_inputs_tmp], 1,name="dec_in")


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM