This was also asked and answered on this other parallel thread. The bug is that you must be hard-coding the value of the number of filters to 32 instead of using the parameter that was passed in.
Oh, sorry, I see that @TMosh already also gave this answer earlier on this thread. So it’s been covered!