CTC+pytorch编译配置warp-CTC遇见ModuleNotFoundError: No module named 'warpctc_pytorch._warp_ctc'错误

—恢复内容开始—

For followers, if you get this on mac (and installed anaconda via brew cask)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/my/dirwarp-ctc/pytorch_binding/warpctc_pytorch/__init__.py", line 8, in <module>
    from ._warp_ctc import lib as _lib, ffi as _ffi
ModuleNotFoundError: No module named 'warpctc_pytorch._warp_ctc'

meant cd ../build && cp libwarpctc.dylib /usr/local/anaconda3/lib

—恢复内容结束—

    原文作者:pytorch
    原文地址: https://www.cnblogs.com/pogeba/p/10279511.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞