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
#263 by @david-vicente introduced separate methods for test_AD for MOKernel - I'm concerned this means that we won't be running the same set of tests for MOKernels.
Maybe that's how it has to be, but then it seems like the type hierarchy isn't quite right - we should obey Liskov substitution principle, right?
This to me seems like a case where overloading the same method isn't really the right thing to do (because it suggests they do the same thing - it's a kernel AD check in either case - but they don't actually seem to check the same things)... now that i've got y'all in a thread, what is your opinion on these ?
Hmm yeah, I think you're right -- this slipped by us. Presumably we should just be constructing MOKernel-specific inputs (in the default case) and passing these on to the regular testing function or something (i.e. like we do with the interface tests). Is this the kind of thing that you had in mind?
Sorry for the trouble. At the time I was having a hard time using the existing methods because I wanted to perform AD tests for a kernel with tuples of Ints and Floats as inputs, and the existing code didn't consider that case.
#263 by @david-vicente introduced separate methods for test_AD for MOKernel - I'm concerned this means that we won't be running the same set of tests for MOKernels.
Maybe that's how it has to be, but then it seems like the type hierarchy isn't quite right - we should obey Liskov substitution principle, right?
Originally posted by @st-- in #414 (comment)
The text was updated successfully, but these errors were encountered: