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

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


The answer, as mentioned by the OP is to to use tensorflow2. Though it wasn't possible to get to the root cause of this problem it seems like it may be stemming from unsupported functionality in tensorflow1.x.

See here for the changes of 1.x vs 2.x