microsoft / knossos-ksc

Compiler with automatic differentiation
Other
45 stars 10 forks source link

Correct order of arguments in vrelu3 aten implementation #1034

Closed dcrc2 closed 2 years ago

dcrc2 commented 2 years ago

Fixes a bug in #1001.

The PyTorch example code passes the arguments to backward in the opposite order to that used in Knossos. I forgot to switch the arguments when changing the benchmark to use the Knossos wrapper.

I should have picked this up in manual testing, sorry. The bug is not found by CI because we have some benchmarks which are expected to give incorrect results (the embedded_INCORRECT benchmarks). Maybe we should disable those benchmarks in CI so that we can fail the build if another example breaks?