---
title: "ClikaRT::ops::narrow"
sidebar_label: "narrow"
description: "length elements from start along dim. Both are int literals or 0-D integer Tensors (a tensor-valued window never syncs to the host)."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## narrow() {#narrow}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`narrow`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `input`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `dim`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`IndexBound`](./IndexBound.md) `start`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`IndexBound`](./IndexBound.md) `length`<br />
)

</div>

`length` elements from `start` along `dim`. Both are int literals or 0-D integer Tensors (a tensor-valued window never syncs to the host).

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 3444

</div>
