'Tensor' object has no attribute '_keras_shape' code example
Example: AttributeError: 'Tensor' object has no attribute 'get_shape'
#you can now use .shape instead of get_shape()
myTensor.shape
#you can now use .shape instead of get_shape()
myTensor.shape