Switching between sequential and functional styles confusing me

I’m working on Lab 1 UNQ C2 and the freeform nature of this cell has me switching between styles reminiscent of the keras sequential API into the keras functional API from one line to the next. Does this make any sense? In experience we’re usually sticking with one style or the other and it’s driving me nuts.

Hey @Bradley_M_Messer, I believe that’s what the comments say “There are many ways to implement this function”. Please feel free to let us know if you have any suggestions on updating/improving this cell.

Thank you!
Sharob