Updated on 2022-03-13 GMT+08:00

te.lang.cce.vor(lhs, rhs)

Performs bitwise OR on two tensor elements. The data types of the elements must be the same. The supported types are int16 and uint16.

This API is defined in elewise_compute.py.

Parameter Description

  • lhs: left tensor, tvm.tensor type
  • rhs: right tensor, tvm.tensor type

Return Value

res_tensor: bitwise OR between lhs and rhs, tvm.tensor type

Calling Example

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 = te.lang.cce.vor(data1, data2)