tf2.0 — InvalidArgumentError: Incompatible shapes
今天遇到了一个很奇怪的问题,这种问题一般是由于已经保存的加载之后,与要使用的数据shape不一致导致的。 tensorflow.python.framework.errors_impl.InvalidArgumentError: Incompatible shapes: [50000,10] vs. [50000,100] 这是我的代码: # (x, y), (x_test, y_test) = …