georgeguo-cn / LGMRec

[AAAI 2024] Official Pytorch Implementation for "LGMRec: Local and Global Graph Learning for Multimodal Recommendation".
26 stars 8 forks source link

Question about Model #2

Closed Tianyi-Billy-Ma closed 1 week ago

Tianyi-Billy-Ma commented 4 months ago

In the file models/lgmrec.py line 118, why assign the gumble_softmax value of ut_hyper to uv_hyper?

The source code is uv_hyper = F.gumbel_softmax(ut_hyper, self.tau, dim=1, hard=False).

Isn't this should be ut_hyper = F.gumbel_softmax(ut_hyper, self.tau, dim=1, hard=False)?

georgeguo-cn commented 4 months ago

Thank you for your thorough inspection. You are right and I have made the following modifications:

ut_hyper = F.gumbel_softmax(ut_hyper, self.tau, dim=1, hard=False).