Getting broken pipeline error(03-cifar10-feedforward)


BrokenPipeError Traceback (most recent call last)
in
----> 1 history = [evaluate(model, val_loader)]
2 history

in evaluate(model, val_loader)
1 def evaluate(model, val_loader):
----> 2 outputs = [model.validation_step(batch) for batch in val_loader]
3 return model.validation_epoch_end(outputs)
4
5 def fit(epochs, lr, model, train_loader, val_loader, opt_func=torch.optim.SGD):

in (.0)
1 def evaluate(model, val_loader):
----> 2 outputs = [model.validation_step(batch) for batch in val_loader]
3 return model.validation_epoch_end(outputs)
4
5 def fit(epochs, lr, model, train_loader, val_loader, opt_func=torch.optim.SGD):

in iter(self)
13 def iter(self):
14 “”“Yield a batch of data after moving it to device”""
—> 15 for b in self.dl:
16 yield to_device(b, self.device)
17

~\AppData\Local\Continuum\anaconda3\lib\site-packages\torch\utils\data\dataloader.py in iter(self)
277 return _SingleProcessDataLoaderIter(self)
278 else:
→ 279 return _MultiProcessingDataLoaderIter(self)
280
281 @property

~\AppData\Local\Continuum\anaconda3\lib\site-packages\torch\utils\data\dataloader.py in init(self, loader)
717 # before it starts, and del tries to join but will get:
718 # AssertionError: can only join a started process.
→ 719 w.start()
720 self._index_queues.append(index_queue)
721 self._workers.append(w)

~\AppData\Local\Continuum\anaconda3\lib\multiprocessing\process.py in start(self)
110 ‘daemonic processes are not allowed to have children’
111 _cleanup()
→ 112 self._popen = self._Popen(self)
113 self._sentinel = self._popen.sentinel
114 # Avoid a refcycle if the target function holds an indirect

~\AppData\Local\Continuum\anaconda3\lib\multiprocessing\context.py in _Popen(process_obj)
221 @staticmethod
222 def _Popen(process_obj):
→ 223 return _default_context.get_context().Process._Popen(process_obj)
224
225 class DefaultContext(BaseContext):

~\AppData\Local\Continuum\anaconda3\lib\multiprocessing\context.py in _Popen(process_obj)
320 def _Popen(process_obj):
321 from .popen_spawn_win32 import Popen
→ 322 return Popen(process_obj)
323
324 class SpawnContext(BaseContext):

~\AppData\Local\Continuum\anaconda3\lib\multiprocessing\popen_spawn_win32.py in init(self, process_obj)
87 try:
88 reduction.dump(prep_data, to_child)
—> 89 reduction.dump(process_obj, to_child)
90 finally:
91 set_spawning_popen(None)

~\AppData\Local\Continuum\anaconda3\lib\multiprocessing\reduction.py in dump(obj, file, protocol)
58 def dump(obj, file, protocol=None):
59 ‘’‘Replacement for pickle.dump() using ForkingPickler.’’’
—> 60 ForkingPickler(file, protocol).dump(obj)
61
62 #

BrokenPipeError: [Errno 32] Broken pipe

You might find the answer here.