---
title: vor
description: "两个tensor元素按位取或。"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/others/tbeaicpudevg/atlaste_07_0017.html
sourcePath: /source/zh/CANNCommunityEdition/920beta2/others/tbeaicpudevg/atlaste_07_0017.html
indexId: 69d970bb95a71f94d0950a007b7611055df2058b451623c0d24ccdcfe1fa62cf81
---
# vor

#### 功能说明

两个tensor元素按位取或。


#### 函数原型

vor(lhs, rhs)


#### 参数说明

- lhs：左tensor，tvm.tensor类型。
- rhs：右tensor，tvm.tensor类型。
- 两个Tensor中元素的数据类型需要一致，shape需要相同。
  支持的类型有int16，uint16, uint32, int32


#### 返回值

res_tensor：表示lhs按位或rhs，tvm.tensor类型。


#### 约束说明

无。


#### 支持的型号

Atlas 训练系列产品

Atlas 推理系列产品

Atlas 200I/500 A2 推理产品

Atlas A2 训练系列产品 / Atlas A2 推理系列产品

Atlas A3 训练系列产品 / Atlas A3 推理系列产品


#### 调用示例

```
from tbe import tvm
from tbe import dsl
shape = (1024,1024)
input_dtype = "int16"
data1 = tvm.placeholder(shape, name="data1", dtype=input_dtype)
data2 = tvm.placeholder(shape, name="data2", dtype=input_dtype)
res = dsl.vor(data1, data2)
```
