Lesson 2: Multi-limb SplitNN on MNIST: 'Request to access data length rejected' error on final epoch training step #305
Replies: 3 comments 2 replies
-
I had something similar @cbs-rschreijen, but about the array lengths. I was not able to solve it. You can find the error here: #303 |
Beta Was this translation helpful? Give feedback.
-
Hi @cbs-rschreijen if the issue is still not solved, could you please share it in the #support channel in openmined.slack.com? Someone will get back to you. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I have encountered the same problem and the following solution worked for me: For your data owners, change to
Run this cell again for both data owners and you should be able to train your model. Good luck! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am getting the following error when running the final epoch training cell in the DS notebook. All previous cells in DO1, DO2 and DS notebooks ran error-free. I downloaded the most recent syft versions as per course instruction.
[2021-04-02T14:21:42.184665+0200][CRITICAL][logger]][29845] Request to access data length rejected.
[2021-04-02T14:21:42.185500+0200][CRITICAL][logger]][29845] Request to access data length rejected.
Exception Traceback (most recent call last)
~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/klass.py in len(self)
255 if data_len is None:
--> 256 raise Exception
257
Exception:
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/klass.py in iter(self)
222 try:
--> 223 data_len = self.len()
224 except Exception:
~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/klass.py in len(self)
259 except Exception:
--> 260 traceback_and_raise(
261 ValueError("Request to access data length rejected.")
~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/logger.py in traceback_and_raise(e, verbose)
60 e = Exception(e)
---> 61 raise e
62
ValueError: Request to access data length rejected.
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
in
3 train_total = 0
4
----> 5 for in1, in2, label in zip(dl_1, dl_2, dl_local):
6 opt1.zero_grad()
7 opt2.zero_grad()
~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/klass.py in iter(self)
223 data_len = self.len()
224 except Exception:
--> 225 traceback_and_raise(
226 ValueError("Request to access data length rejected.")
227 )
~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/logger.py in traceback_and_raise(e, verbose)
59 if not issubclass(type(e), Exception):
60 e = Exception(e)
---> 61 raise e
62
63
ValueError: Request to access data length rejected.
Beta Was this translation helpful? Give feedback.
All reactions