-
Notifications
You must be signed in to change notification settings - Fork 4
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
Problems to run your code #1
Comments
For the first issue, that's being caused by a batch of size 0 being passed into For the second issue: does |
Update: there a few bugs caused by changes in how syft functions. You could install an old |
Hi, |
Hi @valeriatu , so sorry for the delay in answering this. |
Hi,
Probably it is because I'm pretty new with Pytorch and Pysyft but I have some problems to run your code:
If I try:
conda env create -f environment.yml
It creates the conda env but if I run:
python main.py --nopeek_weight 0.1 --epoch 1 --batch_size 32 --learning_rate 0.001 --saveas namemodel --n_train_data 5000
there is the following error:
RuntimeError: shape '[0, -1]' is invalid for input of size 25088
located here:
input_data = input_data.view(input_data.size(0), -1) line 25 - loss.py
Then I tried to create the environment in this way but I can't because if I run this:
conda env create -f environment-lock.yml
I have the following error:
Solving environment: failed
ResolvePackageNotFound:
I'm using linux...
Thank you in advance
The text was updated successfully, but these errors were encountered: