Open innat opened 9 months ago
Thank you @innat, as a temporary workaround you can call processing_model.build((None, 224, 224, 3))
before the loop. Alternatively, the issue also goes away by setting tensorflow to eager mode so it seems likely that the model build is not being triggered in graph mode from within the map
call.
Works in Keras 2 but not in Keras 3.
Similar issue https://github.com/tensorflow/tensorflow/issues/29931#issuecomment-529637694