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
Arm backend: Do not delegate casting to FP dtypes with BI profile (#10906)
- Casting to floating-point dtypes should be rejected for delegation.
Class ToCopySupported should guarantee this. However, the shallow copy
used in func _merge_supported_types will modify the dict
SUPPORTED_INT_TYPES unintentionally, merging the dict
SUPPORTED_FLOAT_TYPES into SUPPORTED_INT_TYPES. Therefore, casting to
floating-point dtypes can also pass the check under BI profile.
- Fix it by using deepcopy.
- Add unittest in test_to_copy.py to check the castings to FP dtypes are
not delegated.
Signed-off-by: Yufeng Shi <[email protected]>
0 commit comments