Thank you @albanD.  I took this notebook from a  Udemy course.  How would I flatten correctly, or is there a place in the docs to figure that out?  Also, should I not pass the indicies to the unpooling layer?