There are lots of tutorials online regarding how to use GridSearchCV with Sequential API, but very little on the Functional API.
The below code fails when grid.fit is