Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LabelPropagation中的loss问题 #1

Open
DiaosWang opened this issue Jan 22, 2025 · 0 comments
Open

LabelPropagation中的loss问题 #1

DiaosWang opened this issue Jan 22, 2025 · 0 comments

Comments

@DiaosWang
Copy link

您好,有个问题想请教下。

https://github.com/Typistchen/APPN/blob/e64e4292cded42253701c30dc337bbe67fff6d3b/model.py#L412C1-L413C41
展现的loss2在训练时似乎无法对model的权重起到优化作用,即loss2中的encoded_array 和flat_array 都是手动构建的,和model的权重无关联,loss.backward()时无法生成model参数权重的梯度。

不知道是不是我理解有误,万分期待您的答复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant