---
title: GetStrides
description: 用于获取Tensor的步长。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/msadg/mxvisionug_0434.html"
---

# GetStrides

#### 函数功能

用于获取Tensor的步长。


#### 函数原型

```
std::vector<uint32_t> GetStrides() const;
```


#### 返回参数说明

| 参数名 | 说明 |
| --- | --- |
| std::vector<uint32\_t> | Tensor的步长数组。 |
