神奇的TensorFlow之dataset.from_tensor_slice函数错误:ValueError: Can't convert non-rectangular Python sequenc

ValueError: Can't convert non-rectangular Python sequence to Tensor

这是我遇到的异常,但神奇的是这个异常引起的原因是我输入是一个list,而非元组造成的,也就是我把[x_data,y_data]换成(x_data,y_data)就行了,TMD,这叫什么事啊?被这个破错误困了好久。

 

你可能感兴趣的:(tensorflow,bug,tf)