This issue on tensorflow github
tensorflow.contrib and the imported class CategoricalVocabulary is deprecated since Tf2.0. Would be nice to adapt this code to work with tensorflow.keras instead as mentioned in the linked issue.
Running on Tf2.5 gives this error "ModuleNotFoundError: No module named 'tensorflow.contrib'"
This issue on tensorflow github
tensorflow.contrib and the imported class CategoricalVocabulary is deprecated since Tf2.0. Would be nice to adapt this code to work with tensorflow.keras instead as mentioned in the linked issue.
Running on Tf2.5 gives this error "ModuleNotFoundError: No module named 'tensorflow.contrib'"