This version computes all quantities once (both backward and forward pass). It increases substantially the efficiency of the code.
This version computes all quantities once (both backward and forward pass). It increases substantially the efficiency of the code.