Skip to content

Instantly share code, notes, and snippets.

@guilhermeleobas
Created November 11, 2022 20:03
Show Gist options
  • Save guilhermeleobas/91fc7a4137b4fa27b95ff4b8830d0952 to your computer and use it in GitHub Desktop.
Save guilhermeleobas/91fc7a4137b4fa27b95ff4b8830d0952 to your computer and use it in GitHub Desktop.
============================= test session starts ==============================
platform darwin -- Python 3.9.13, pytest-7.1.2, pluggy-1.0.0 -- /Users/guilhermeleobas/miniconda3/envs/numba/bin/python
cachedir: .pytest_cache
rootdir: /Users/guilhermeleobas/git/numba
collecting ... collected 1 item
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array PASSED
=============================== warnings summary ===============================
numba/pycc/platform.py:6
/Users/guilhermeleobas/git/numba/numba/pycc/platform.py:6: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.misc_util as np_misc
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:72: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "ravel_array" failed type inference due to: - Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 2d, C))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 2d, C))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 2d, C))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (73)
File "numba/tests/test_array_manipulation.py", line 73:
def ravel_array(a):
return a.ravel()
^
def ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/core/object_mode_passes.py:151: NumbaWarning: Function "ravel_array" was compiled in object mode without forceobj=True.
File "numba/tests/test_array_manipulation.py", line 72:
def ravel_array(a):
^
warnings.warn(errors.NumbaWarning(warn_msg,
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/core/object_mode_passes.py:161: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "numba/tests/test_array_manipulation.py", line 72:
def ravel_array(a):
^
warnings.warn(errors.NumbaDeprecationWarning(msg,
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:80: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "numpy_ravel_array" failed type inference due to: No implementation of function Function(<function ravel at 0x1066a6f70>) found for signature:
>>> ravel(array(int64, 2d, C))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_ravel': File: numba/np/arrayobj.py: Line 2090.
With argument(s): '(array(int64, 2d, C))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 2d, C))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 2d, C))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 2d, C))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2094)
File "numba/np/arrayobj.py", line 2094:
def np_ravel_impl(a):
return a.ravel()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
During: resolving callee type: Function(<function ravel at 0x1066a6f70>)
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (81)
File "numba/tests/test_array_manipulation.py", line 81:
def numpy_ravel_array(a):
return np.ravel(a)
^
def numpy_ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/core/object_mode_passes.py:151: NumbaWarning: Function "numpy_ravel_array" was compiled in object mode without forceobj=True.
File "numba/tests/test_array_manipulation.py", line 80:
def numpy_ravel_array(a):
^
warnings.warn(errors.NumbaWarning(warn_msg,
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/core/object_mode_passes.py:161: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "numba/tests/test_array_manipulation.py", line 80:
def numpy_ravel_array(a):
^
warnings.warn(errors.NumbaDeprecationWarning(msg,
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:72: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "ravel_array" failed type inference due to: - Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 2d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 2d, F))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 2d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 2d, F))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 2d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 2d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (73)
File "numba/tests/test_array_manipulation.py", line 73:
def ravel_array(a):
return a.ravel()
^
def ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:80: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "numpy_ravel_array" failed type inference due to: No implementation of function Function(<function ravel at 0x1066a6f70>) found for signature:
>>> ravel(array(int64, 2d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_ravel': File: numba/np/arrayobj.py: Line 2090.
With argument(s): '(array(int64, 2d, F))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 2d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 2d, F))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 2d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 2d, F))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 2d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 2d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2094)
File "numba/np/arrayobj.py", line 2094:
def np_ravel_impl(a):
return a.ravel()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
During: resolving callee type: Function(<function ravel at 0x1066a6f70>)
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (81)
File "numba/tests/test_array_manipulation.py", line 81:
def numpy_ravel_array(a):
return np.ravel(a)
^
def numpy_ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:72: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "ravel_array" failed type inference due to: - Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 2d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 2d, A))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 2d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 2d, A))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 2d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 2d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (73)
File "numba/tests/test_array_manipulation.py", line 73:
def ravel_array(a):
return a.ravel()
^
def ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:80: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "numpy_ravel_array" failed type inference due to: No implementation of function Function(<function ravel at 0x1066a6f70>) found for signature:
>>> ravel(array(int64, 2d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_ravel': File: numba/np/arrayobj.py: Line 2090.
With argument(s): '(array(int64, 2d, A))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 2d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 2d, A))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 2d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 2d, A))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 2d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 2d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2094)
File "numba/np/arrayobj.py", line 2094:
def np_ravel_impl(a):
return a.ravel()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
During: resolving callee type: Function(<function ravel at 0x1066a6f70>)
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (81)
File "numba/tests/test_array_manipulation.py", line 81:
def numpy_ravel_array(a):
return np.ravel(a)
^
def numpy_ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:72: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "ravel_array" failed type inference due to: - Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 3d, C))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 3d, C))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 3d, C))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (73)
File "numba/tests/test_array_manipulation.py", line 73:
def ravel_array(a):
return a.ravel()
^
def ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:80: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "numpy_ravel_array" failed type inference due to: No implementation of function Function(<function ravel at 0x1066a6f70>) found for signature:
>>> ravel(array(int64, 3d, C))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_ravel': File: numba/np/arrayobj.py: Line 2090.
With argument(s): '(array(int64, 3d, C))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 3d, C))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 3d, C))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 3d, C))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2094)
File "numba/np/arrayobj.py", line 2094:
def np_ravel_impl(a):
return a.ravel()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
During: resolving callee type: Function(<function ravel at 0x1066a6f70>)
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (81)
File "numba/tests/test_array_manipulation.py", line 81:
def numpy_ravel_array(a):
return np.ravel(a)
^
def numpy_ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:72: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "ravel_array" failed type inference due to: - Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 3d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 3d, F))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 3d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 3d, F))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 3d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 3d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (73)
File "numba/tests/test_array_manipulation.py", line 73:
def ravel_array(a):
return a.ravel()
^
def ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:80: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "numpy_ravel_array" failed type inference due to: No implementation of function Function(<function ravel at 0x1066a6f70>) found for signature:
>>> ravel(array(int64, 3d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_ravel': File: numba/np/arrayobj.py: Line 2090.
With argument(s): '(array(int64, 3d, F))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 3d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 3d, F))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 3d, F))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 3d, F))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 3d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 3d, F))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2094)
File "numba/np/arrayobj.py", line 2094:
def np_ravel_impl(a):
return a.ravel()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
During: resolving callee type: Function(<function ravel at 0x1066a6f70>)
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (81)
File "numba/tests/test_array_manipulation.py", line 81:
def numpy_ravel_array(a):
return np.ravel(a)
^
def numpy_ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:72: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "ravel_array" failed type inference due to: - Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 3d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 3d, A))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 3d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 3d, A))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 3d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 3d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (73)
File "numba/tests/test_array_manipulation.py", line 73:
def ravel_array(a):
return a.ravel()
^
def ravel_array(a):
numba/tests/test_array_manipulation.py::TestArrayManipulation::test_ravel_array
/Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py:80: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "numpy_ravel_array" failed type inference due to: No implementation of function Function(<function ravel at 0x1066a6f70>) found for signature:
>>> ravel(array(int64, 3d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_ravel': File: numba/np/arrayobj.py: Line 2090.
With argument(s): '(array(int64, 3d, A))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_ravel at 0x10c70da60>) found for signature:
>>> ol_array_ravel(array(int64, 3d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_ravel': File: numba/np/arrayobj.py: Line 2070.
With argument(s): '(array(int64, 3d, A))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function ol_array_flatten at 0x10c70db80>) found for signature:
>>> ol_array_flatten(array(int64, 3d, A))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_array_flatten': File: numba/np/arrayobj.py: Line 2098.
With argument(s): '(array(int64, 3d, A))':
Rejected as the implementation raised a specific error:
NumbaTypeError: Failed in nopython mode pipeline (step: nopython frontend)
Only accept returning of array passed into the function as argument
raised from /Users/guilhermeleobas/git/numba/numba/core/typed_passes.py:150
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'flatten') for array(int64, 3d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2079)
File "numba/np/arrayobj.py", line 2079:
def imp_copy(arr):
<source elided>
"""Copy version"""
return arr.flatten()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'numba.core.types.npytypes.Array'>, 'ravel') for array(int64, 3d, A))
During: typing of call at /Users/guilhermeleobas/git/numba/numba/np/arrayobj.py (2094)
File "numba/np/arrayobj.py", line 2094:
def np_ravel_impl(a):
return a.ravel()
^
raised from /Users/guilhermeleobas/git/numba/numba/core/typeinfer.py:1086
During: resolving callee type: Function(<function ravel at 0x1066a6f70>)
During: typing of call at /Users/guilhermeleobas/git/numba/numba/tests/test_array_manipulation.py (81)
File "numba/tests/test_array_manipulation.py", line 81:
def numpy_ravel_array(a):
return np.ravel(a)
^
def numpy_ravel_array(a):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 1 passed, 37 warnings in 2.65s ========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment