AttributeError: 'numpy.ndarray' object has no attribute 'get_shape'

问题遇到的现象和发生背景

img

后来尝试了把tensorflow升级到2. 之后还是这个问题 求各位指点

X要转成tensor才对,你现在还是数组