0

I don't have any background on pipes. I saw a Pipe() on line 107 here and I would appreciate if someone could explain what's going on.

Line 107: https://github.com/jcwleo/curiosity-driven-exploration-pytorch/blob/master/train.py

user3180
  • 1,369
  • 1
  • 21
  • 38
  • refere this https://stackoverflow.com/questions/8463008/python-multiprocessing-pipe-vs-queue – Chandu Dec 12 '18 at 09:50
  • So at a high level is it just an interface for sending inputs to and outputs from an instance running in a thread? – user3180 Dec 12 '18 at 09:56
  • 1
    Yes, That's accurate! – Chandu Dec 12 '18 at 09:58
  • 1
    It's not meant for inter-thread communication in the _same_ process (would work, but would be overkill, use a `queue.Queue` instead) but between _different_ processes. – Darkonaut Dec 12 '18 at 14:10

0 Answers0