(self, x, states)
| 276 | return x |
| 277 | |
| 278 | def step(self, x, states): |
| 279 | prev_output = states[0] |
| 280 | B_U = states[1] |
| 281 | B_W = states[2] |
| 282 | |
| 283 | if self.consume_less == 'cpu': |
| 284 | h = x |
| 285 | else: |
| 286 | h = K.dot(x * B_W, self.W) + self.b |
| 287 | |
| 288 | output = self.activation(h + K.dot(prev_output * B_U, self.U)) |
| 289 | return output, [output] |
| 290 | |
| 291 | def dream(self, x, states): |
| 292 | prev_st = states[0] |
nothing calls this directly
no outgoing calls
no test coverage detected