losttech / Gradient

This repository serves as a public issue tracker and documentation host for Gradient, full TensorFlow binding for .NET
Other
86 stars 4 forks source link

Any comparisons between NumPy arrays always return true #30

Closed lostmsu closed 4 years ago

lostmsu commented 4 years ago

This applies to both operators like == and >, and __eq__-like functions. They return a new array object, which, unless all zeroes, is always "pythonically" True

Workaround

Use dynamic overloads, e.g. __eq___dyn