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

bug in prune-weights-ResNet18.py? #10

Open
dalistarh opened this issue Aug 15, 2019 · 1 comment
Open

bug in prune-weights-ResNet18.py? #10

dalistarh opened this issue Aug 15, 2019 · 1 comment

Comments

@dalistarh
Copy link

Hi,

I was looking into the ResNet18 pytorch code, and noticed the following sequence:

	if layer_name == 'fc':
		layer_type = 'F'
	else:
		layer_type = 'R'

	if layer_type == 'C':
                [...]

Unless I'm wrong, this means that none of the layers will be treated as Conv for this code.
Is this behaviour intended?

Thanks,
Dan

@csyhhu csyhhu closed this as completed Aug 16, 2019
@csyhhu csyhhu reopened this Aug 16, 2019
@csyhhu
Copy link
Owner

csyhhu commented Aug 16, 2019

Hi @dalistarh ,

Yes, all conv layer is treated as res layer (without bias). For ResNet18 only contain one conv layer and the rest are res, FC. It is a simplicity when I write the code.

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