Update Tensorflow Prebuilt containers and saving method #74
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.
Description
This repository has outdated versions of the GCP pre-built containers for training and serving Tensorflow models (2.6 is no longer being patched and will be removed from GCP in September 2024), so I have updated them to use version 2.12, this also requires a saving approach to change, as models saved with
tf_model.save()
method are not picked up by the pre-built prediction container. This has been updated totf.saved_model.save()
which should work ok.How has this been tested?
I have made this change in an Org Repo that uses this template for training and serving tensorflow models, which ran successfully E2e. I don't personally have access to GCP or Vertex AI unfortunately!
Checklist
Pipeline run links: