---
title: IsWithMargin
description: "查询Tensor是否存在补边。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0761.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0761.html
indexId: 5139c43337c21a6d4393415939b351d0dfcb1fda1b2a98076f1f26f0c5f42922102
---
# IsWithMargin

#### 函数功能

查询Tensor是否存在补边。


#### 函数原型

```
bool IsWithMargin() const;
```


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| bool | 判断Tensor是否存在补边的结果，布尔类型。 |
