<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.0/meridian/model/adstock_hill.py#L317-L337) |

Computes the `(media ** slope, ec ** slope)` terms of the Hill function.

    meridian.model.adstock_hill.compute_hill_powers(
        media: https://developers.google.com/meridian/reference/api/meridian/backend/Tensor,
        ec: https://developers.google.com/meridian/reference/api/meridian/backend/Tensor,
        slope: https://developers.google.com/meridian/reference/api/meridian/backend/Tensor
    ) -> tuple[backend.Tensor, backend.Tensor]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `media` | Tensor with dimensions `[..., n_geos, n_media_times, n_media_channels]`. |
| `ec` | Tensor with dimensions `[..., n_media_channels]`. |
| `slope` | Tensor with dimensions `[..., n_media_channels]`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tuple `(t1, t2)` of tensors representing `media ** slope` with dimensions `[..., n_geos, n_media_times, n_media_channels]` and `ec ** slope` with dimensions `[..., 1, 1, n_media_channels]`. ||

<br />