1# Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# ============================================================================= 15 16"""Contains the pooling layer classes and their functional aliases. 17""" 18from tensorflow.python.keras.legacy_tf_layers import pooling 19 20 21AveragePooling1D = pooling.AveragePooling1D 22average_pooling1d = pooling.average_pooling1d 23MaxPooling1D = pooling.MaxPooling1D 24max_pooling1d = pooling.max_pooling1d 25AveragePooling2D = pooling.AveragePooling2D 26average_pooling2d = pooling.average_pooling2d 27MaxPooling2D = pooling.MaxPooling2D 28max_pooling2d = pooling.max_pooling2d 29AveragePooling3D = pooling.AveragePooling3D 30average_pooling3d = pooling.average_pooling3d 31MaxPooling3D = pooling.MaxPooling3D 32max_pooling3d = pooling.max_pooling3d 33 34# Aliases 35 36AvgPool2D = AveragePooling2D 37MaxPool2D = MaxPooling2D 38max_pool2d = max_pooling2d 39avg_pool2d = average_pooling2d 40