class_docstr: Quantized Layer interface
class_docstr_tok: ["Quantized","Layer","interface"]
docstr: Initialize quantized layer from config
code: def from_config(cls, *args, config=None, **kwargs):
      """Initialize quantized layer from config"""
      return cls(
          *args,
          **kwargs,
          **{k: getattr(config, k) for k in cls.CONFIG_ATTRIBUTES},
      )
  
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 5 for calling the QuantizedLayer obj's underlying member method code with example usage: obj.from_config(cls) and returns: cls