Is there a way to get the values of a Keras Tensor as a numpy array?
A normal K.eval() does not work and results in:
AttributeError: 'KerasTensor' object has no attribute 'numpy'

I use the eager execution.
I need this to access and check the outputs of some layers of my sequential model. Example: (out2 = K.eval(cnn.layers[2].output))
Minimal example:
import numpy
import tensorflow.keras.models as models
import tensorflow.keras.layers as layers
from keras import backend as K

cnn = models.Sequential([
    layers.Conv2D(filters=64, kernel_size=3, activation='relu',
                  kernel_initializer='he_uniform', padding='same',
                  input_shape=(32,32,3))],
    name='cnn')

res = cnn(numpy.random.random((1,32,32,3)))

print(K.eval(cnn.layers[0].output))