fix(spatial): make gradient storage and feature selection independent
fix(spatial): make gradient storage and feature selection independent: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: fix(spatial): make gradient storage and feature selection independent
The task
**Title:** fix(spatial): make gradient storage and feature selection independent
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.