te.lang.cce.vrelu(raw_tensor)
Performs the ReLU operation each element in a tensor. The supported type is float16. The data types int8, uint8, int32, and float32 are converted to float16.
This API is defined in elewise_compute.py.
Parameter Description
raw_tensor: input tensor, tvm.tensor type
Return Value
res_tensor: relu(raw_tensor), tvm.tensor type
Calling Example
shape = (1024,1024) input_dtype = "float16" data = tvm.placeholder(shape, name="data", dtype=input_dtype) res = te.lang.cce.vrelu(data)
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot