---
title: "operator !="
description: 判断两个SVector的元素是否存在不同。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/ascendtb/ascendtb_01_0032.html"
---

# operator !=

#### 功能说明

判断两个SVector的元素是否存在不同。


#### 定义

```
bool operator != (const SVector<T> &other) const
```


#### 参数列表

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| other | 输入 | 判断两个SVector中的元素是否存在不同。 |


#### 返回值说明

| 类型 | 输入/输出 | 说明 |
| --- | --- | --- |
| bool | 输出 | 返回“true”时不相同。 返回“false”时相同。 |
