Closed shanegibbs closed 6 years ago
Potential fix for https://github.com/raskr/rust-autograd/issues/4. You may be able to come up with a more elegant solution. I am not super familiar with ndarray.
ndarray
This adds a found switch, which, when flipped causes the fn in apply() to only return 0.. This ensures we have a maximum of 1.
found
apply()
0.
Thank you a lot! The trigger of this bug is exactly what you mentioned in #4, and changes looks good to me 👍
Potential fix for https://github.com/raskr/rust-autograd/issues/4. You may be able to come up with a more elegant solution. I am not super familiar with
ndarray
.This adds a
found
switch, which, when flipped causes the fn inapply()
to only return0.
. This ensures we have a maximum of 1.