model_fit = model.fit(Train_dataset,
validation_data=Val_dataset,
steps_per_epoch=5, epochs=10)
I tried this code snippet and getting an error saying "AttributeError: 'DirectoryIterator' object has no attribute '_assert_compile_was_called'". I tried downgrading the tensorflow version, but it's not working.