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

two #2

Open
liubinbinbin opened this issue Sep 27, 2021 · 1 comment
Open

two #2

liubinbinbin opened this issue Sep 27, 2021 · 1 comment

Comments

@liubinbinbin
Copy link

1.the A is current features, the B is pre_features?
2.loss = criterion(output, target).view(1, -1).mm(weight1).view(1),when loss.backward(), the weight1 will be back propagation?

@xxgege
Copy link
Owner

xxgege commented Dec 14, 2021

  1. No, actually A and B are two variables and they can be considered as two features in current features.
  2. weight1 is only used for reweighting the loss calculated by each sample so that its update is not included in the backpropagation of the main network. The backpropagation of the main network only includes parameters of the main 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

2 participants