What is the difference between jit and autojit in numba?

I am confused as to what the difference is between jit and autojit .

I read this:

http://numba.pydata.org/numba-doc/0.6/doc/userguide.html

But I can’t say that I know that I am confident in choosing between two options. Can anyone elaborate, ideally with an example.

thanks

+5
source share
1 answer

I should have read that for the new version of numba.

http://numba.pydata.org/numba-doc/0.15.1/tutorial_firststeps.html#compiling-a-function-with-numba-jit-using-an-explicit-function-signature

2) jit (function) -> dispatcher

 Same as old autojit. Create a dispatcher function object that specialize at call site. Example: @jit def foo(x, y): return x + y 

http://numba.pydata.org/numba-doc/0.15.1/tutorial_firststeps.html#compiling-a-function-without-providing-a-function-signature-autojit-functionality

Starting with numba version 0.12, you can use numba.jit without providing a type signature for this function. This feature was provided by numba.autojit in previous versions of numba. The old numba.autojit hass was deprecated in favor of this unsubscribed version of numba.jit.

+7
source

Source: https://habr.com/ru/post/1208854/


All Articles