Fix tensorflow import in dataset wrapper to handle invalid tensorflow installation due to unsupported protobuf #176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is mainly to fix one of our nightly notebook tests that is failing. In the notebook test we are using the EndpointWrapper from ml-wrappers but getting the error for the file https://github.com/Azure/azureml-examples/blob/main/sdk/python/responsible-ai/text/responsibleaidashboard-text-classification-blbooksgenre.ipynb:
After close investigation, it looks like one package, azure-ai-ml, is installing google-api-core which depends on a newer version of protobuf, after an older version of tensorflow==2.9.3 was installed with an older protobuf range. When ml-wrappers tries to import tensorflow for a helper utility, the import fails with TypeError. This PR prevents this error from occurring by ignoring the TypeError and printing a debug message:
Also, as part of this PR the ml-wrappers version was bumped so a release can be done, the is_sequential utility method was updated/fixed to work with latest tensorflow version and some tests were re-enabled.