# 需要导入模块: from keras import layers [as 别名]# 或者: from keras.layers importGlobalMaxPooling2D[as 别名]defglobal_max_min_pooling(x, name=None):if'global_max_min_pool_cnt'notinglobals():globalglobal_max_min_pool_cnt global_max_min_pool_cnt =0ifnameisNone: name ='GlobalMaxMinPoo...