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 __init__(self, model, config_list, optimizer=None):
      super().__init__(model, config_list, optimizer)
      self.quant_grad = ClipGrad
  
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 1 to create a new BNNQuantizer object from inherited base classes: Quantizer with example: obj = BNNQuantizer(model, config_list, optimizer)