<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/core/train_utils.py#L44-L68) |

Get leaf from a dictionary with arbitrary depth with a list of keys.

    tfm.core.train_utils.get_leaf_nested_dict(
        d: Dict[str, Any], keys: List[str]
    ) -> Dict[str, Any]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `d` | The dictionary to extract value from. |
| `keys` | The list of keys to extract values recursively. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The value of the leaf. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `KeyError` | If the value of keys extracted is a dictionary. |

<br />