williamleif / graphsage-simple

Simple reference implementation of GraphSAGE.
999 stars 242 forks source link

what is the meaning of "self.base_model = base_model" in encoders.py ? #4

Open faychu opened 6 years ago

faychu commented 6 years ago

Hi, it seems that the code "self.base_model = base_model" is ineffective, since self.base_model is not used in encoders.py.

However, when I remove the statement, the result changes a lot. So, what is the meaning of the statement in encoders.py?

liangxun commented 5 years ago

Hi, it seems that the code "self.base_model = base_model" is ineffective, since self.base_model is not used in encoders.py.

However, when I remove the statement, the result changes a lot. So, what is the meaning of the statement in encoders.py?

try "print(model)", the computing graph is incomplete without "self.base_model".