---
title: operator=接口
description: "禁用InferTensor的拷贝赋值函数。"
url: https://www.hiascend.com/document/detail/zh/mindie/latest/mindiellm/llmdev/mindie_llm0104.html
sourcePath: /source/zh/mindie/310/mindiellm/llmdev/mindie_llm0104.html
indexId: 7f2ee568cf5063d7025026028dc2d7dd716539bc75b544e270ba815daf30c7e558
---
# operator=接口

#### 接口功能

禁用InferTensor的拷贝赋值函数。


#### 接口格式

```
InferTensor &operator=(const InferTensor &other) = delete;
```


#### 接口参数

| 参数 | 是否必选 | 说明 | 取值要求 |
| --- | --- | --- | --- |
| other | 是 | 其他的InferTensor对象。 | InferTensor对象。 |


#### 使用样例

无。


#### 返回值

无。
