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

Error while running l1-norm-pruning on Windows machine #57

Open
mitrapallavi11 opened this issue May 10, 2023 · 3 comments
Open

Error while running l1-norm-pruning on Windows machine #57

mitrapallavi11 opened this issue May 10, 2023 · 3 comments

Comments

@mitrapallavi11
Copy link

Hi,

I am trying to run the code for l1-norm-pruning on windows machine. But I am getting an error due to multiprocessing failure as follows:

RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.

This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:

if name == 'main':
freeze_support()
...

The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.

Any solution how to mitigate that error?

@Eric-mingjie
Copy link
Owner

Eric-mingjie commented May 11, 2023

can you point me which file are you referring to here?

@mitrapallavi11
Copy link
Author

training VGG-16

python main.py --dataset cifar10 --arch vgg --depth 16

@Eric-mingjie
Copy link
Owner

can you point to which file? I don't think we have the function call to freeze_support anywhere in 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