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
May be caused by the RemoveDuplicateCastTransformer called at the end of InsertCastTransformer::ApplyImpl, which is called by InferenceSession::TransformGraph.
Thanks @fefe982 for the datapoint. That does sound probable. I read the code and I guess ORT considers my case as high->low->lower precision so it removes the first cast?
Describe the bug
[-0.2, -0.1, 0, 0.1, 0.2].cast(int32).cast(bool)
returns[ True, True, False, True, True]
in ORT, but should be[ False, False, False, False, False]
.Some dataponts:
So I guess ORT does a fusion optimization here that mistakenly rewrite
cast(int32).cast(bool)
tocast(bool)
.Urgency
None
System information
To Reproduce
Run the following script.
Expected behavior
Be consistent to NumPy and PyTorch.
Screenshots

Additional context
The text was updated successfully, but these errors were encountered: