ssl_text_classification icon indicating copy to clipboard operation
ssl_text_classification copied to clipboard

batch size error

Open daniadag opened this issue 5 years ago • 0 comments

there is an error in CUDA when we used large batch size so I changed it and put --wbatchsize 300 --wbatchsize_unlabel 300 but the code give me this error how i can solve it?????

C:\Users\DANYA\Desktop\all\projects\python\ssl_text_classification-master\training.py:369: UserWarning: torch.nn.utils.clip_grad_norm is now deprecated in favor of torch.nn.utils.clip_grad_norm_. self.config.max_norm) Traceback (most recent call last): File "main.py", line 56, in object(train_data, dev_data, test_data, unlabel_data) File "C:\Users\DANYA\Desktop\all\projects\python\ssl_text_classification-master\training.py", line 217, in call self._train(train, dev, unlabel) File "C:\Users\DANYA\Desktop\all\projects\python\ssl_text_classification-master\training.py", line 478, in _train accuracy = self._run_epoch(train_data, dev_data, unlabel_data) File "C:\Users\DANYA\Desktop\all\projects\python\ssl_text_classification-master\training.py", line 286, in _run_epoch -1) File "C:\Users\DANYA\Desktop\all\projects\python\ssl_text_classification-master\batch_utils.py", line 29, in seq_pad_concat labels, word_ids = zip(*batch) ValueError: not enough values to unpack (expected 2, got 0)

daniadag avatar Jan 30 '20 13:01 daniadag