Thanks for your reply. I just want to modify the question to add my new code:
   #initialize Binary Network with sign(W)
    state_dict = model_raw.state_dict()
    state_dict_quant = OrderedDict()
    for k, v in state_dict.items():
        state_dict_quant[k] = torch.sign(v)
    model_B.load_state_dict(state_dict_quant)