Fix logic of multi-layer parameter reading
A bug in !1700 (merged) cause the encoder to pass all parameters into all layers (independent of the specified target layer)
A bug in !1700 (merged) cause the encoder to pass all parameters into all layers (independent of the specified target layer)