---
title: thunder.clang.take_along_axis
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.clang.take_along_axis
---
# thunder.clang.take_along_axis {#thunder-clang-take-along-axis}

### `thunder.clang.take_along_axis(a, /, indices, dim)` {#thunder.clang.take_along_axis}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/core/langctxs.py#L944-L948)

Return type:

[`TensorProxy`](/docs/thunder/core/generated/thunder.core.proxies.TensorProxy#thunder.core.proxies.TensorProxy "thunder.core.proxies.TensorProxy")

Parameters:

*   **a** ([_TensorProxy_](/docs/thunder/core/generated/thunder.core.proxies.TensorProxy#thunder.core.proxies.TensorProxy "thunder.core.proxies.TensorProxy")) –
    
*   **indices** ([_TensorProxy_](/docs/thunder/core/generated/thunder.core.proxies.TensorProxy#thunder.core.proxies.TensorProxy "thunder.core.proxies.TensorProxy")) –
    
*   **dim** ([_int_](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)")) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
