DequantizeOp

公共类 DequantizeOp

利用给定的 zeroPointscale 反量化 TensorBuffer

注意:输出张量的数据类型始终为 FLOAT32,除非将 DequantizeOp 作为身份操作有效创建,例如将 zeroPoint 设置为 0 并将 scale 设置为 1(在这种情况下,输出张量与输入实例是同一个实例)。

如果 zeroPointscale 均为 0,系统会绕过 DequantizeOp,这相当于将 zeroPoint 设为 0 并将 scale 设为 1。这在传入直接从 TFLite 模型平面缓冲区提取的量化参数时非常有用。如果未量化张量,则 zeroPointscale 都将被读取为 0。

公共构造函数

DequantizeOp(float zeroPoint, float scale)

继承的方法

org.tensorflow.lite.support.common.ops.NormalizeOp
TensorBuffer
applyTensorBuffer 输入)
对给定张量应用定义的归一化,并返回结果。
布尔值
equals(Object arg0)
final Class<?>
getClass()
整型
hashCode()
最终无效
notify()
最终无效
notifyAll()
字符串
toString()
最终无效
wait(long arg0, int arg1)
最终无效
wait(long arg0)
最终无效
wait()
org.tensorflow.lite.support.common.TensorOperator 接口
abstract TensorBuffer
applyTensorBuffer 输入)
org.tensorflow.lite.support.common.Operator 接口
abstract TensorBuffer
apply(TensorBuffer x)
对 T 对象应用操作,返回 T 对象。

公共构造函数

public DequantizeOp (float zeroPoint, float scale)

参数
zeroPoint
和 WAF