Mercurial > pylearn
comparison nnet_ops.py @ 184:9a2aecc57a79
added TODO to nnet_ops
author | Olivier Breuleux <breuleuo@iro.umontreal.ca> |
---|---|
date | Tue, 13 May 2008 18:39:58 -0400 |
parents | 1b06bc2c3ca9 |
children | 3d953844abd3 |
comparison
equal
deleted
inserted
replaced
183:25d0a0c713da | 184:9a2aecc57a79 |
---|---|
142 #TODO: put this into a templated function, in the support code | 142 #TODO: put this into a templated function, in the support code |
143 #TODO: declare the max of each row as an Op output | 143 #TODO: declare the max of each row as an Op output |
144 | 144 |
145 #TODO: set error messages for failures in this code | 145 #TODO: set error messages for failures in this code |
146 | 146 |
147 #TODO: use this to accept float32 and int32: node.inputs[0].type.dtype_specs()[1] | |
148 | |
147 return """ | 149 return """ |
148 npy_intp* Nx = %(x)s->dimensions; | 150 npy_intp* Nx = %(x)s->dimensions; |
149 | 151 |
150 if (%(x)s->nd != 2) | 152 if (%(x)s->nd != 2) |
151 { | 153 { |