Why trainable parameters are not considered right?
I have tested the ResNet block and it works fine, but when I call it in the model class, it somehow it does not work properly? Is it related to the model definition?
I have tested the ResNet block and it works fine, but when I call it in the model class, it somehow it does not work properly? Is it related to the model definition?
In your code by default training=False, set training=True it will work right.
Also, since you are already subclassing keras.Model you don't need to again call keras.Model. Remove the model() method, pass the input directly to call() method by setting training=True.
Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.