Win10环境,单GPU运行Jupyter以下有错:
- data_dir = d2l.download_extract(‘SNLI’),永远不能解压缩下载的SNLI数据
- class SNLIBERTDataset 中
def _preprocess(self, all_premise_hypothesis_tokens):
pool = multiprocessing.Pool(4) # 使用4个进程
out = pool.map(self._mp_worker, all_premise_hypothesis_tokens)
pool.map函数貌似会卡死。