---
title: operator=
description: "等号运算符重载，用于TensorBase对象之间的赋值。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0422.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0422.html
indexId: b7060a926c5661c9b2b44ee645c49b6447b115dd10ee1f2842169da9ca32f441102
---
# operator=

#### 函数功能

等号运算符重载，用于TensorBase对象之间的赋值。


#### 函数原型

```
TensorBase& operator = (const TensorBase& other);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| other | 输入/输出 | TensorBase对象。 |
