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
I've found myself in a situation in which I have, I am using a Dictionary<OrtTensorTypeAndShapeInfo, LAMBDA> where the lambda is a specific funcion that knows how to operate on a tensor of that specific type and shape.
Unfortunately, because the OrtTensorTypeAndShapeInfo has a Shape array, the default equality is comparing the instances of the arrays and not the contents of the shape arrays.
implementing IEquality would fix that.
The text was updated successfully, but these errors were encountered:
Describe the feature request
it would be useful in some scenarios that
OrtTensorTypeAndShapeInfo
implementsIEquatable<T>
and associatedGetHashCode
to compare instancesDescribe scenario use case
I've found myself in a situation in which I have, I am using a Dictionary<OrtTensorTypeAndShapeInfo, LAMBDA> where the lambda is a specific funcion that knows how to operate on a tensor of that specific type and shape.
Unfortunately, because the OrtTensorTypeAndShapeInfo has a Shape array, the default equality is comparing the instances of the arrays and not the contents of the shape arrays.
implementing IEquality would fix that.
The text was updated successfully, but these errors were encountered: