You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps I am wrong, but I believe that instead of using model.output on a Sequential model, one should use model.layers[-1].output. Please correct me if I'm mistaken.
Suggested fix
If my assumption is correct, it may be worth adding a note to the documentation/a comment to the snippet where it is relevant.
Thanks!
Standalone code to reproduce the issue or tutorial link
Issue Type
Documentation Bug
Source
source
Keras Version
3.4.1
Custom Code
No
OS Platform and Distribution
MacOS 14.4.1
Python version
3.12.3
GPU model and memory
No response
Current Behavior?
When trying to use the example Grad-CAM algorithm from the documentation, it didn't seem to work with a Sequential model.
Perhaps I am wrong, but I believe that instead of using
model.output
on a Sequential model, one should usemodel.layers[-1].output
. Please correct me if I'm mistaken.Suggested fix
If my assumption is correct, it may be worth adding a note to the documentation/a comment to the snippet where it is relevant.
Thanks!
Standalone code to reproduce the issue or tutorial link
Relevant log output
The text was updated successfully, but these errors were encountered: