class_docstr: Binarized Neural Networks, as defined in:
  Binarized Neural Networks: Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1
  (https://arxiv.org/abs/1602.02830)
code: def quantize_weight(self, wrapper, **kwargs):
      weight = copy.deepcopy(wrapper.module.old_weight.data)
      weight = torch.sign(weight)
      # remove zeros
      weight[weight == 0] = 1
      wrapper.module.weight = weight
      return weight
  
imports: import logging
  import copy
  import torch
  from schema import Schema, And, Or, Optional
  from ..utils.config_validation import CompressorSchema
  from ..compressor import Quantizer, QuantGrad, QuantType
label_desc: Use image node_id 3 for calling the BNNQuantizer obj's underlying member method code with example usage: obj.quantize_weight(wrapper) and returns: weight