0
我一直在使用tensorflow和python3支持。我的代碼中有一行會引發錯誤。TensorFlow:AttributeError:'Tensor'對象沒有屬性'log10'
的位置誤差:
return -10. * np.log10(K.mean(K.square(y_pred - y_true)))
AttributeError: 'Tensor' object has no attribute 'log10'
什麼爲K?在K.mean和K.square? –
我使用Keras(已安裝)我在我的代碼.......從keras導入後端作爲K –
K.mean返回什麼?它似乎返回一個張量對象,而不是一個nummpy數組 –