vor

Description

Performs the bitwise OR operation on the elements of two tensors.

Prototype

vor(lhs, rhs)

Parameters

  • lhs: a tvm.tensor for the left tensor
  • rhs: a tvm.tensor for the right tensor
  • The tensors must have the same data type and shape.

    The supported types are int16, uint16, uint32, and int32.

Returns

res_tensor: a tvm.tensor for the result tensor

Restrictions

None

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Example

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)