def int_weight(module: QuantWBIOL): int_weight = module.int_weight(float_datatype=False).detach() return int_weight.type(torch.int8)
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)
def int_weight(module: QuantWBIOL): return torch.t(module.int_weight(float_datatype=True)).detach()
def int_weight(module: QuantWBIOL): return module.int_weight(float_datatype=False).detach()