How the parameters trasfer from one module to another one
fansariadeh opened this issue · 1 comments
Dear Thomas,
Sorry if my question is a bit silly but I need to make sure I understand all details since your work is my cornerstone of GCNN and I almost have memorised all lines !!!
I was wondering when in the line 10 of models.py we pass nfeat and nhid to GraphConvolution:
self.gc1 = GraphConvolution(nfeat, nhid)
then these two parameter will transfer to the line 14 of layers.py
def init(self, in_features, out_features, bias=True)
right?
In this case, in_features and out_features are replaced with nfeat and nhid respectively, right?
Can you please let me know why it works like this? I mean when the name of parameter is different how the code replace them accordingly.
I appreciate your time.
Fatima
def init(self, in_features, out_features, bias=True)
You don't need to pass same name while passing parameters in python function :
Quick example
def example(p_1, p_2):
return p_1*p_2
# Here while calling this function I can pass any int variable to example function
var_a = 1
example(var_a,var_a)