class_docstr: Quantized Layer interface
class_docstr_tok: ["Quantized","Layer","interface"]
code: def weight_scale(self):
      return (
          get_dynamic_scale(self.weight, self.weight_bits)
          if self.training
          else self._weight_scale
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from enum import Enum, auto
  import logging
  from abc import ABC, abstractmethod
  import torch
  from torch import nn
  from torch.nn import functional
  from nlp_architect.common import Config
label_desc: Use image node_id 7 for calling the QuantizedLayer obj's underlying member method code with example usage: obj.weight_scale() and returns: unknown