线性
- classtorch.ao.nn.quantized.functional.linear(input, weight, bias=None, scale=None, zero_point=None)[源代码]
-
对输入的量化数据进行线性变换:$y = xA^T + b$。参见
Linear
注意
当前实现每次调用时都会打包权重,这会带来性能损耗。如果你想避免这种开销,可以使用
Linear
。- 参数
- 返回类型
- 形状:
-
-
输入: $(N, *, in\_features)$,其中 * 表示任意数量的额外维度。
-
权重:$(out\_features, in\_features)$
-
偏置: $(out\_features)$
-
输出: $(N, *, out\_features)$
-