img_input = Input(shape=(224, 224, 3))
output = DResLayer(1000, [2, 3, 4, 2], [64, 128, 256, 512])(img_input)
model = models.Model(img_input, output)
model.summary()
from tensorflow.keras.utils import plot_model
plot_model(model, to_file='DResLayer_model.png', show_shapes=True) # 保存模型结构图