<s> from __future__ import absolute_import , print_function , division <EOL> from . import pool <EOL> import warnings <EOL> warnings . warn ( <EOL> "<STR_LIT>" ) <EOL> max_pool_2d_same_size = pool . max_pool_2d_same_size <EOL> max_pool_2d = pool . pool_2d <EOL> DownsampleFactorMax = pool . Pool <EOL> PoolGrad = pool . PoolGrad <EOL> MaxPoolGrad = pool . MaxPoolGrad <EOL> AveragePoolGrad = pool . AveragePoolGrad <EOL> class DownsampleFactorMaxGrad ( object ) : <EOL> def __new__ ( self , ds , ignore_border , st = None , padding = ( <NUM_LIT:0> , <NUM_LIT:0> ) , mode = '<STR_LIT>' ) : <EOL> if mode == '<STR_LIT>' : <EOL> return MaxPoolGrad ( ds = ds , ignore_border = ignore_border , st = st , <EOL> padding = padding ) <EOL> else : <EOL> return AveragePoolGrad ( ds = ds , ignore_border = ignore_border , st = st , <EOL> padding = padding , mode = mode ) <EOL> DownsampleFactorMaxGradGrad = pool . DownsampleFactorMaxGradGrad </s>
