concatenate conditioning vector on feature map axis
(x, y)
| 44 | return X |
| 45 | |
| 46 | def conv_cond_concat(x, y): |
| 47 | """ |
| 48 | concatenate conditioning vector on feature map axis |
| 49 | """ |
| 50 | return T.concatenate([x, y*T.ones((x.shape[0], y.shape[1], x.shape[2], x.shape[3]))], axis=1) |
| 51 | |
| 52 | def batchnorm(X, g=None, b=None, u=None, s=None, a=1., e=1e-8): |
| 53 | """ |