-
I have defined a custom model, which has a graph mean pooling layer. I would like to remove it along with its subsequent layers. Is there a way to do this in pytorch geometric? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Jul 6, 2024
Replies: 1 comment
-
You could use model hooks to get intermediate outputs before the pooling layer. Alternatively, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
VHK459
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use model hooks to get intermediate outputs before the pooling layer. Alternatively, you can use
torch.fx
to modify the model on the fly.