Change to follow the change of Keras v3.5.0 #2356
Open
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
Keras has introduced a new way of what/how
![Screenshot 2025-02-10 at 7 17 33 PM](https://private-user-images.githubusercontent.com/1940561/411620715-e2d20808-4c8b-4ef0-8405-04865de9536d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzU2MDQsIm5iZiI6MTczOTU3NTMwNCwicGF0aCI6Ii8xOTQwNTYxLzQxMTYyMDcxNS1lMmQyMDgwOC00YzhiLTRlZjAtODQwNS0wNDg2NWRlOTUzNmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMjMyMTQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjA5YmE0NDVhNDEwYjA3NGQ5MDBkZmVkMzVmOGY1ZWVmNDhmMDM5NzM5YzY5MDc5OGJjYjkwYjY1YTU3YjZmYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.rOFIjv53h8j-qOiRCImb54-WpwfSHb_ebkhpAcJIZW4)
get_file()
returns since v3.5.0 with this commit. Therefore, the tutorial is not working anymore with the latest TensorFlow with the affected Keras, for instance, TensorFlow v2.18.0 and Keras v3.8.0 are currently installed in Colab and it failed to get the data file as in the screenshot below.It could be dealt with in the better way to consider the older versions, though, it's a bit off-track from the tutorial's purpose itself. So, this PR starts from the shortest version.
Please feel free to correct me. I'm usually making a mistake.
Thank you! :D
References