2017-02-27 106 views
2

此代碼在Tensorflow v0.12.1上運行,但在TF v1.0上的新安裝失敗。這個函數是否被棄用?我應該使用什麼功能? (Tensorflow運行起來,所以我相信這不是一個錯誤配置)使用tensorflow.mul()後的代碼在升級到tensorflow後失敗v1.0

File "***.py", line 115, in trainNetwork 
    readout_action = tf.reduce_sum(tf.mul(readout, a), reduction_indices = 1) 
AttributeError: module 'tensorflow' has no attribute 'mul' 

回答

11

在TensorFlow 1.0 tf.mul()功能已重命名爲tf.multiply()

相關問題