from keras.engine.input_layer import InputLayer
inp = model.input
outputs = [layer.output for layer in model.layers if not isinstance(layer, InputLayer)]
functors = [K.function(inp + [K.learning_phase()], [x]) for x in outputs]
layer_outputs = [fun([x1, x2, xn, 1]) for fun in functors]
我使用此代码行来创建每个图层的输出。所以现在我想显示来自conv2d_1的输出,该输出的形状为(328,28,28,16)[float32] ..
如何用matplotlib绘制此图?