concept both direction in category deep learning

appears as: both direction
Grokking Deep Learning

This is an excerpt from Manning's book Grokking Deep Learning.

What if you had a way to compute both direction and amount for each weight without having to repeatedly make predictions?