onnxruntime
55e0128b - [DML EP] Cast to bool correctly, adding explicit clip after cast (#22665)

Commit
1 year ago
[DML EP] Cast to bool correctly, adding explicit clip after cast (#22665) ### Description The CastNonStringTester test in CastOpTest was failing due to bitwise mismatches when casting other types to bool. This was caused by bool being represented as uint8 in DML. Added a clipping step in DmlOperatorCast to ensure correct bitwise matching after casting to bool ref: https://dev.azure.com/microsoft/OS/_workitems/edit/44572678 ### Motivation and Context
Author
Parents
Loading