I wrote this in convolutional_model function according to the direction, but there was something goes wrong and I failed to figure it out by myself. Please help me debug
{mentor edit: code removed}
this module warns:
AttributeError: ‘Flatten’ object has no attribute ‘shape’
Tom has already pointed out the problem here, but maybe it’s also worth pointing to this Discourse post which is a much more complete introduction to the Sequential and Functional APIs than what they give us in the notebooks.