Skip to content

Commit 0056de8

Browse files
author
Christopher Doris
committed
tweak warning
1 parent 591dcf4 commit 0056de8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pysrc/juliacall/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def init():
5858
# importing pytorch before juliacall sometimes causes segfaults. TODO: remove
5959
if "torch" in sys.modules:
6060
warnings.warn(
61-
"`torch` was loaded before the juliacall. This may cause a segfault. "
62-
"To avoid this, import `juliacall` *before* importing `torch`. "
63-
"For updates, see https://github.com/pytorch/pytorch/issues/78829"
61+
"torch was imported before juliacall. This may cause a segfault. "
62+
"To avoid this, import juliacall before importing torch. "
63+
"For updates, see https://github.com/pytorch/pytorch/issues/78829."
6464
)
6565

6666
def option(name, default=None, xkey=None, envkey=None):

0 commit comments

Comments
 (0)