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型就好了。
相关文章
相关标签/搜索