-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Can't pickle MXNet Modules #8955
Comments
why did you want to pickle the whole module class ? |
For example, I use parallel processing to distribute my training jobs. joblib uses pickle in multiprocessing |
Honestly I don't think module can be pickle. Mxnet have lot's of C++ inside. |
If you take the old interface with mxnet.model, it can be pickled. |
Proposed Labels:"Feature Request", "Module","Python" |
I am using windows 7, anaconda navigator 1.9.2, Python 3.6.6, Jupyter notebook 5.7.0, try to learn code from Gluon crash course chapter 5. I already add: I got stuck at
please help. thanks. |
@sliawatimena Can you file a separate issue on this repository and also can you provide a minimum reproducible example to help debug this issue ? From the stacktrace that you've posted, it seems unclear as to where you are using pickle ? |
Dear @piyushghai, I just copy from 5. Train the neural network, from step 1 - 5 are okay. In step 6, the error message are as previous post. From googling results: this looks like a Windows-specific problem with Python multiprocessing and Jupyter Notebook. Please help. Thanks. Suryadi |
This #10562 issue helped me. train_data = gluon.data.DataLoader(
mnist_train, batch_size=batch_size, shuffle=True, num_workers=0) Change Also, do the same for validation data. Hope this helps. |
Description
Can't pickle mxnet Modules
Environment info (Required)
Error Message:
Minimum reproducible example
The text was updated successfully, but these errors were encountered: