Linear#
- classtorch.ao.nn.quantized.dynamic.Linear(in_features,out_features,bias_=True,dtype=torch.qint8)[source]#
A dynamic quantized linear module with floating point tensor as inputs and outputs.We adopt the same interface astorch.nn.Linear, please seehttps://pytorch.org/docs/stable/nn.html#torch.nn.Linear for documentation.
Similar to
torch.nn.Linear, attributes will be randomlyinitialized at module creation time and will be overwritten later- Variables
Examples:
>>>m=nn.quantized.dynamic.Linear(20,30)>>>input=torch.randn(128,20)>>>output=m(input)>>>print(output.size())torch.Size([128, 30])