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

UV decomposition #3

Open
icey-zhang opened this issue Nov 26, 2020 · 3 comments
Open

UV decomposition #3

icey-zhang opened this issue Nov 26, 2020 · 3 comments

Comments

@icey-zhang
Copy link

Hello, I would like to ask which part of the implementation of UV decomposition mentioned in the paper, I did not find the code of this part

@shupenggui
Copy link
Collaborator

Please take a look at this line

class DeepLRModel(nn.Module):

For the implementation, the DeepLRModel could substitute the sp one as the super class for models like ResNet34.

@icey-zhang
Copy link
Author

icey-zhang commented Dec 3, 2020

But the code use DeepSP_v2Model rather than DeepLRModel (cidar10, ResNet34), Is there any difference between them?
Do the weightA and weightB correspond to the decomposition values?
what do the modelu and modelz stand for?

@shupenggui
Copy link
Collaborator

shupenggui commented Dec 3, 2020

But the code use DeepSP_v2Model rather than DeepLRModel (cidar10, ResNet34), Is there any difference between them?

Please refer to this line

weightA = self.weightA.view(self.rank, -1)

if you are trying to figure out how the decomposition work in ATMC.

By the way, the DeepLRModel serves at the Low-rank baseline in the paper. I thought you were trying to reproduce that one in your previous question. No relation exists between those two super modules.

Do the weightA and weightB correspond to the decomposition values?

Yes, those two weights are the decomposition matrices for U and V.

what do the modelu and modelz stand for?

Those models refer to the duplicated optimization variables applied in ADMM.

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