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

No speed difference between sparsities #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WaterHyacinthInNANHU
Copy link

Thanks for your great work!
I have some trouble running tests with your code, but I could not submit any issues so I'm leaving messages here...

Q1: When I ran test.sh on cityscapes dataset, it gave me the warning:

/home/yan/anaconda3/envs/ML3.9/lib/python3.9/site-packages/acosp/inject.py:119: UserWarning: Incorrect number of channels are masked: tensor([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
        1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
        1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
        1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) for 32 number of remaining elements

what does it mean?

Q2: There is no speed difference between sparsities. I noticed you had implemented soft_to_channel_sparse in inject.py, and I think it is used to convert masked convs to sparse normal ones, which have fewer flops. Could you tell me how to use it to boot inference at runtime?

Thanks in advance.

@WaterHyacinthInNANHU WaterHyacinthInNANHU changed the title Incorrect number of channels are masked: {mask} for {module.k} number of remaining elements No speed difference between sparsities Dec 9, 2022
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

Successfully merging this pull request may close these issues.

1 participant