博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pytorch bug
阅读量:4680 次
发布时间:2019-06-09

本文共 563 字,大约阅读时间需要 1 分钟。

   

  1. ImportError: torch.utils.ffi is deprecated

      raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")

    ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.

缺ciff包,用pip install cffi,如果安装后还是报错,这是你该果断降低pytorch版本到0.4,原因在pytorch1.0不支持此包

 

  1. ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm)

 

  出现这个错误的情况是,在服务器上的docker中运行训练代码时,batch size设置得过大,shared memory不够(因为docker限制了shm).解决方法是,将Dataloader的num_workers设置为0.

 

转载于:https://www.cnblogs.com/walktosee/p/10580604.html

你可能感兴趣的文章