MCPcopy Create free account
hub / github.com/commaai/research / step

Method step

models/layers.py:278–289  ·  view source on GitHub ↗
(self, x, states)

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected