0

I came across a piece of code with this line in it:

for l, val in zip((l for mod in (self.time_model, self.pitch_model)
for l in mod.layers if has_hidden(l)), learned_list[2]):

The part I have a problem following is the syntax l for mod in. How is it please called to put varible before the for keyword, so I can google it, or can you guys explain?

Marek Židek
  • 730
  • 1
  • 12
  • 29

0 Answers0