Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmoritz committed Jul 27, 2018
1 parent 2751679 commit 5f0cafa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pyarrow/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def import_pytorch_extension():
https://issues.apache.org/jira/browse/ARROW-2920
"""
import ctypes
import os

for path in _iterate_python_module_paths("torch"):
ctypes.CDLL(os.path.join(path, "lib/libcaffe2.so"))
Expand Down

0 comments on commit 5f0cafa

Please sign in to comment.