Ejemplo n.º 1
0
 def int_weight(module: QuantWBIOL):
     int_weight = module.int_weight(float_datatype=False).detach()
     return int_weight.type(torch.int8)
Ejemplo n.º 2
0
 def int_weight(module: QuantWBIOL):
     int_weight = module.int_weight(float_datatype=False).detach()
     if module.is_quant_weight_signed:
         return int_weight.type(torch.int8)
     else:
         return int_weight.type(torch.uint8)
Ejemplo n.º 3
0
 def int_weight(module: QuantWBIOL):
     return torch.t(module.int_weight(float_datatype=True)).detach()
Ejemplo n.º 4
0
 def int_weight(module: QuantWBIOL):
     return module.int_weight(float_datatype=False).detach()