| Conditions | 1 |
| Total Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | #!/usr/bin/env python |
||
| 22 | def prepare(self): |
||
| 23 | self.W = self.create_weight(shape=(self.num_pieces, self.input_dim, self.output_dim), |
||
| 24 | initializer=self.init, suffix="maxout") |
||
| 25 | self.B = self.create_bias(shape=(self.num_pieces, self.output_dim), suffix="maxout") |
||
| 26 | self.register_parameters(self.W, self.B) |
||
| 27 | |||
| 30 | return T.max(T.dot(x, self.W) + self.B, axis=1) |