facebookresearch / diffkt

A framework for automatic differentiation in Kotlin
MIT License
60 stars 6 forks source link

Make the jit accept an EqualityComparer<Input> #47

Open gafter opened 2 years ago

gafter commented 2 years ago

Since the jit should only "care about" changes to inputs that are significant for the function being jitted, you may want to use a custom equals and hashCode implementation for the jit. In order to permit that, the jit should take an optional parameter of the interface type EqualityComparer<Input>... but unfortunately such a type doesn't appear to exist in the Kotlin (or Java) APIs.