You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can change this in a PR if it's more readable, but in fact in python the scope of the variables defined in a loop is the same scope that other local variables.
e.g you can do
foriinrange(10):
passprint(i)
output will be 9.
BTW we just merged unit tests for the reduction kernels and added a reduction for 2d tensors on axis 1 😁
(See #46 for some thinking on using custom kernels vs dpnp functions)
https://github.com/soda-inria/sklearn-numba-dpex/blob/main/sklearn_numba_dpex/common/kernels.py#L221-L225
The function reads
The returned variable
result
is outside of its scope of definition (local variable defined in the scope of the loop).I believe the last line should be
return summands
instead.The text was updated successfully, but these errors were encountered: