# HG changeset patch # User Emmanuel Bengio # Date 1311777723 14400 # Node ID 9d2323513092a9b1a0d6ad232535a1c74fd3472a # Parent 35a3a4e2d99985ee4169b4f0f22df84a4f68c9a2 added formulas/nnet.py with inverse_max_pooling(...) diff -r 35a3a4e2d999 -r 9d2323513092 pylearn/formulas/nnet.py --- a/pylearn/formulas/nnet.py Wed Jul 27 10:37:41 2011 -0400 +++ b/pylearn/formulas/nnet.py Wed Jul 27 10:42:03 2011 -0400 @@ -22,6 +22,11 @@ The shape of the pooling windows ignore_borders : boolean Will pad borders with zeros if true + + Returns + ------- + ret : 4D tensor + A Theano variable with same shape as output_shape """ # flatten the input and repeat it repeated_input = [max_pool_out.flatten()]*(pooling_shape[0]*pooling_shape[1])