import tensorflow as tf poolsize=(2, 2) tf.keras.layers.MaxPool2D(pool_size=poolsize, strides=None, padding='valid', data_format=None)