Mercurial > pylearn
comparison pylearn/formulas/nnet.py @ 1491:8be8cdde97ee
tensor instead of T
author | Emmanuel Bengio <bengioe@iro.umontreal.ca> |
---|---|
date | Wed, 27 Jul 2011 13:27:00 -0400 |
parents | 9d2323513092 |
children |
comparison
equal
deleted
inserted
replaced
1490:9d2323513092 | 1491:8be8cdde97ee |
---|---|
31 # flatten the input and repeat it | 31 # flatten the input and repeat it |
32 repeated_input = [max_pool_out.flatten()]*(pooling_shape[0]*pooling_shape[1]) | 32 repeated_input = [max_pool_out.flatten()]*(pooling_shape[0]*pooling_shape[1]) |
33 | 33 |
34 # concatenate the repeated vectors into | 34 # concatenate the repeated vectors into |
35 # a 2D matrix in the format neibs2images wants | 35 # a 2D matrix in the format neibs2images wants |
36 stacked_conv_neibs = T.stack(*repeated_input).T | 36 stacked_conv_neibs = tensor.stack(*repeated_input).T |
37 | 37 |
38 # then get back a stretched version of the stacked neighbours | 38 # then get back a stretched version of the stacked neighbours |
39 stretch_unpooling_out = \ | 39 stretch_unpooling_out = \ |
40 neighbours.neibs2images(stacked_conv_neibs, | 40 neighbours.neibs2images(stacked_conv_neibs, |
41 pooling_shape, | 41 pooling_shape, |