the-deep-learners / deep-learning-illustrated

Deep Learning Illustrated (2020)
https://www.deeplearningillustrated.com
MIT License
708 stars 355 forks source link

keras.layers.normalization deprecated #16

Open sqing73 opened 5 months ago

sqing73 commented 5 months ago

from keras.layers.normalization import BatchNormalization could be changed to from tensorflow.keras.layers import BatchNormalization

jonkrohn commented 4 months ago

Yep, you're right! For the sake of consistency with the book, I'm going to leave it as-is in this particular repo, but you can see the updated (TensorFlow 2.x) code that uses the tensorflow.keras. nomenclature in the newer, analogous repo here.