Help Center/
Atlas 300 Application (Model 3000)/
TE API Reference/
Compute APIs/
te.lang.cce.vor(lhs, rhs)
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)
Parent topic: Compute APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot