Facilitate precompilation for juliacall
calls
#473
Unanswered
ggoretkin-bdai
asked this question in
Q&A
Replies: 2 comments 11 replies
-
Also asked here: https://discourse.julialang.org/t/precompiling-for-pythoncall-jl-juliacall/111596 |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you already have some Python code then using In your example you could do |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
juliacall
in Python to call a Julia function. I would like to precompile the Julia function. Here are the specializations of the function by introspecting on the Python program:I would like to basically insert the following into
FooPkg.jl
But this is not quite right, as
typeof(arg_1)
isPy
, and notPyArray{Float64, 1, true, true, Float64}
. It appears I can get a value of the right type by doingbut is there a way to get it more directly from the corresponding Python code? More generally, what is a workload I can put in
@compile_workload
that exercises the same code paths as is exercised byjuliacall
?Beta Was this translation helpful? Give feedback.
All reactions