更新时间:2021-03-18 GMT+08:00
te.lang.cce.vnot(raw_tensor)
对tensor中的每个元素按位取反,支持的类型:int16,uint16。
该接口在elewise_compute.py中定义。
参数说明
raw_tensor:输入tensor,tvm.tensor类型。
返回值
res_tensor:表示raw_tensor按位取反,tvm.tensor类型。
调用示例
shape = (1024,1024) input_dtype = "int16" data = tvm.placeholder(shape, name="data", dtype=input_dtype) res = te.lang.cce.vnot(data)
父主题: compute接口