Skip to main content

QConvWoQ

QConvWoQ(in_channels, out_channels, kernel, *, stride=None, padding=None, dilation=None, groups=1, bias=True, padding_mode="zeros", value=None, activation=None, dtype=None, device=None)

Weight-only-quantized channels-last convolution; the same knobs as :class:Conv, the weight bound as a :class:~clika_runtime.QTensor.

__init__​

__init__(self, in_channels: 'int', out_channels: 'int', kernel: 'Sequence[int]', *, stride: 'Sequence[int] | None' = None, padding: 'Sequence[int] | None' = None, dilation: 'Sequence[int] | None' = None, groups: 'int' = 1, bias: 'bool' = True, padding_mode: 'PaddingModeLike' = 'zeros', value: 'float | None' = None, activation: 'ActivationLike' = None, dtype: 'DtypeLike | None' = None, device: 'Device | str | None' = None) -> 'None'

Initialize self. See help(type(self)) for accurate signature.

forward​

forward(self, input: 'Tensor') -> 'Tensor'

forward(input) -> Tensor

Floating-point channels-last [batch, *spatial, in_channels] to [batch, *spatial', out_channels].