We can simply return `gradient.compute(...)` here without introducing `grad` and `loss`.