gradValue property

T get gradValue

Implementation

T get gradValue {
  if (grad.isEmpty) throw Exception("VRAM grad not synced to CPU. Call toCpu() first.");
  return _unflatten(grad);
}