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

te.lang.cce.vnot(raw_tensor)

Performs bitwise NOT on each element in a tensor. The supported types are int16 and uint16.

This API is defined in elewise_compute.py.

Parameter Description

raw_tensor: input tensor, tvm.tensor type

Return Value

res_tensor: bitwise NOT on raw_tensor, tvm.tensor type

Calling Example

shape = (1024,1024)
input_dtype = "int16"
data = tvm.placeholder(shape, name="data", dtype=input_dtype)
res = te.lang.cce.vnot(data)