Ali_Kasim:

maxval= np.max(single_fm)
minval= np.min(single_fm)



Yes but here I see only that you are extracting a single feature map taking max and min.
What you really need to do with the feature map before passing it to the next layer?