I see that you changed the yield value in generator from
[[np.array(X1), np.array(X2)], np.array(y)]
(let’s call this yield value 1)
to
{“image_input”:np.array(X1), “caption_input”:np.array(X2)} , np.array(y)
(let’s call this yield value 2)
and then, the fit function worked.
When I used the yield value 1 in my local Jupyter Notebook, the fit function worked but when I used it in Google Colab, it threw a ValueError : No gradients provided for any variable.
The fit function works in Colab only if I use yield value 2.
Any idea why this is so?