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
More robust implementation of the trivial folding. I.e now it can fold floating
points, not only literals. Also handles the cases:
0 * smth or smth * 0 == 0
1 * smth or smth * 1 == smth
smth +- 0 == smth
0 / smth == 0
We need proper tests for those cases.
We need to make the tests compatible with constant folder turned on and turned off. For debugging purpuses in future it may be better to turn off the folder.
The chained rule of differentiation produces a lot of trivial constants to fold. For example:
return 1 + (0) + (1) + (0) + (1).
The text was updated successfully, but these errors were encountered: