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
# check whether results generated by the "original" and "normalized" version agree
assert (x1==orig_x1).all()
assert (assumed_x1==orig_assumed_x1).all()
assert (x2==orig_x2).all()
assert (x3==orig_x3).all()
assert (x4==orig_x4).all()
The symptom is usually one of the following:
Pytest/Python crashes completely (sometimes belatedly) with a SIGABRT, backtrace suggests memory corruption (triggers in malloc sanity checks)
Wrong data type in the output of the transformed code:
# check whether results generated by the "original" and "normalized" version agree
> assert (x1 == orig_x1).all()
E AttributeError: 'bool' object has no attribute 'all'
Output not matching expected results:
> assert (x1 == orig_x1).all()
E assert False
E + where False = <built-in method all of numpy.ndarray object at 0x11f9643f0>()
E + where <built-in method all of numpy.ndarray object at 0x11f9643f0> = array([1, 2], dtype=int32) == array([0, 2], dtype=int32)
E
E Full diff:
E - array([0, 2], dtype=int32)
E ? ^
E + array([1, 2], dtype=int32)
E ? ^.all
The text was updated successfully, but these errors were encountered:
On MacOS, the following test fails with a variety of errors:
loki/loki/transformations/tests/test_array_indexing.py
Lines 323 to 439 in 2b3b206
The symptom is usually one of the following:
The text was updated successfully, but these errors were encountered: