vnot
功能说明
对tensor中的每个元素按位取反。
您可以在“te/lang/cce/te_compute/elewise_compute.py”查看接口定义。
约束说明
支持的类型有int16,uint16。
函数原型
te.lang.cce.vnot(raw_tensor)
参数说明
raw_tensor:输入tensor,tvm.tensor类型。
返回值
res_tensor:表示raw_tensor按位取反,tvm.tensor类型。
支持的芯片型号
Atlas 200/300/500 推理产品
Atlas 训练系列产品
调用示例
shape = (1024,1024) input_dtype = "int16" data = tvm.placeholder(shape, name="data", dtype=input_dtype) res = te.lang.cce.vnot(data)
父主题: Element-wise计算接口