How to return the intermediate result from propagate() function? #5640
Unanswered
Elnath-123
asked this question in
Q&A
Replies: 1 comment
-
You could save the intermediate results as an instance variable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a graph model class (Inherited from Message Passing class), and I rewrote the message() function to calculate the information needed to be passing from neighbor nodes to target node. For some reasons in my experiments, I need to get the intermediate results calculated in the message() function. I checked some tutorial codes, in which the propagate() function only return a variable named "out" (representing the encoded node feature). How can I get the intermediate results(except the variable "out") from propagate() function? I want to get the output of the last hidden layer of self.mlp_1.
Beta Was this translation helpful? Give feedback.
All reactions