So I had next code in old keras-2.2 tf-1.13:
def RN_GlobalAveragePooling2D_r(f): def func(x): x = layers.multiply([x, f]) repx = int(