can we replace this with `gtable = gtab.gradients`?