Lion-ZS / OTKGE

29 stars 5 forks source link

请问 关于models.py里84-85行 和 113行 代码定义的含义 #7

Open ljhry opened 11 months ago

ljhry commented 11 months ago

你好作者,我目前有个疑问,请问 关于models.py里84-85行 line 84 self.embeddings1[0].weight.data *= init_size line 85 self.embeddings1[1].weight.data *= init_size

和 113行 line 113 rel1=self.embeddings1[1](x[:,1])

他们都定义了,但是没有参与模型计算,请问这块是作用是什么,感谢你的回复!

Lion-ZS commented 11 months ago

你好,感谢关注,这些是代码在debug的时候用的,自行删去即可。

在 2023-11-10 18:02:52,"ljhry" @.***> 写道:

你好作者,我目前有个疑问,请问 关于models.py里84-85行 line 84 self.embeddings1[0].weight.data = init_size line 85 self.embeddings1[1].weight.data = init_size

和 113行 line 113 rel1=self.embeddings11

他们都定义了,但是没有参与模型计算,请问这块是作用是什么,感谢你的回复!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>