解決:TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed values:

在用TensorFlow編程的過程當中,咱們常常遇到這樣的問題:數據類型不對    TypeError,遇到這種問題,通常狀況下,我採用的辦法是:編程 wanted_data = tf.cast(origin_data, tf.float32) 這句代碼的意思是將原來的數據(origin_data)轉化爲你想要的數據(wanted_data),裏面的 tf.float32 是新數據的數據類型;co
相關文章
相關標籤/搜索