YujiaBao / Distributional-Signatures

"Few-shot Text Classification with Distributional Signatures" ICLR 2020
https://arxiv.org/abs/1908.06039
MIT License
254 stars 57 forks source link

Some Errors and Requests #26

Closed DC-gao closed 3 years ago

DC-gao commented 3 years ago
  Hello, dear author, when I set the CPU core to 10 according to your default, several errors occurred in the program.
 The first is that there is a parameter of self.num_cores in parallel_sampler.py, but it will report an error on line 135: AttributeError:'ParallelSampler' object has no attribute'num_cores'.
  Then, when calling ForkingPickler(file, protocol).dump(obj) of reduction.py, TypeError: can't pickle weakref objects appeared again.
  self = reduction.pickle.load(from_parent)
  EOFError: Ran out of input.

  I am a beginner in deep learning, maybe these problems are very low-level in your opinion, and I may still encounter some errors in subsequent runs. Therefore, I hope you can update more related code operations in your original mud, such as introducing the call flow of the entire program, which will provide great help to those of us with poor basics.
   In addition, in other people's questions, I have seen you say that your team is testing a project on the ubuntu system. If I want to run the project on Google Colaboratory, what adjustments need to be made.
  Finally, thank you very much for taking time out of your busy schedule to reply to my previous questions!
YujiaBao commented 3 years ago

Hi, our code is tested on Ubuntu. I am not very sure about Google Colab.

For the previous error, could you provide your python version and pytorch version?

DC-gao commented 3 years ago

Python3.7 Pytorch1.8.1

DC-gao commented 3 years ago

您好,我们的代码已在 Ubuntu 上进行了测试。我对 Google Colab 不太确定。

对于之前的错误,你能提供你的python版本和pytorch版本吗?

DC-gao commented 3 years ago

Hi, our code is tested on Ubuntu. I am not very sure about Google Colab.

For the previous error, could you provide your python version and pytorch version?

Thank you very much for your reply. When I use the Colaboratory of Google, there will be no such report error. Now the problem has been solved.