| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(array_type), | intent(in) | :: | this | |||
| real(kind=real32), | intent(in), | dimension(:,:) | :: | upstream_grad | ||
| real(kind=real32), | intent(out), | dimension(:) | :: | output |
Sum-reduced partial derivative: output = sum(partial(upstream_grad), dim=2) Avoids allocating large (n_elem, num_samples) intermediate array