def _scan_step(self, vars):
from neural_var import NeuralVariable<EOL>if not self._loop_vars:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>replace_map = {}<EOL>for k, var in vars.items():<EOL><INDENT>if var is not None:<EOL><INDENT>replace_map[self._dummy_nodes[k].tensor] = var.tensor<EOL><DEDENT><DEDENT>outputs = {}<EOL>for k in self._outputs:<EOL><INDENT>if k not in self._loop_vars:<EOL><INDENT>raise Exception("<STR_LIT>".format(k))<EOL><DEDENT>output_node = theano.clone(self._loop_vars[k].tensor, replace_map)<EOL>outputs[k] = NeuralVariable(output_node, self._loop_vars[k].dim())<EOL><DEDENT>return outputs<EOL>
Internal scan with dummy input variables.