@nb.jit(nopython=True) # <--- Works ok if I remove this
def compute(img, n_bins=9, cell_size=(8, 8), block_size=(3, 3)):
# ... some work
clustered = cluster(int_binned, cell_size)
square_norms = np.sum(clustered * clustered, axis=2)
Looking at the documentation sum is only supported in the simple form (without optional arguments). So you won't be able to use the axis argument. You should however be able to re-write the function yourself.
Best
Matthieu
--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users...@continuum.io.
To post to this group, send email to numba...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/74b1c63c-b3e8-46d3-9d8d-9c878f65a361%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.