Tensorflow Type Error: Value passed to parameter 'shape' has DataType float32 not in list of allowed

  Tensorflow Type Error: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64     這個其實不是問題,是TensorFlow版本的緣由,在TensorFlow1.7會報錯,之前的版本無影響。code   將其轉爲int型就好了。
相關文章
相關標籤/搜索