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

您好,想问一下程序中出现的if l < oriweight.size(1) * oriweight.size(2) * oriweight.size(3)是什么意思? #2

Open
coldlarry opened this issue Jul 2, 2020 · 1 comment

Comments

@coldlarry
Copy link

在sketch_cifar程序中出现了if l < oriweight.size(1) * oriweight.size(2) * oriweight.size(3) and j==0,我不知道设置if l < oriweight.size(1) * oriweight.size(2) * oriweight.size(3)的目的是什么?包括设置的参数is_preserve,也不明白。很希望您能解答,谢谢您。

@lmbxmu
Copy link
Owner

lmbxmu commented Jul 2, 2020

1、进行SVD时,矩阵的行数要小于列数,这里l代表矩阵的行数,oriweight.size(1) * oriweight.size(2) * oriweight.size(3)就是代表矩阵的列数,所以要求满足 l < oriweight.size(1) * oriweight.size(2) * oriweight.size(3)这个条件才进行sketch

2、is_preserve表示本层通道数量是否需要发生变化,若前面一层进行了sketch后卷积核数量减少,那本层卷积层的通道数量也要发生对应发生变化,则is_preserve为False,反之is_preserve为True

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