Hi!
Let me have the following module:
m = nn.quantized.dynamic.Linear(20, 30, dtype=torch.qint8)
m = torch.jit.script(m)
How can I get the weights of the m
module back?
Hi!
Let me have the following module:
m = nn.quantized.dynamic.Linear(20, 30, dtype=torch.qint8)
m = torch.jit.script(m)
How can I get the weights of the m
module back?
Use the _weight_bias() method to get the weights back:
(wt,bias) = m._packed_params._weight_bias()