code: def __init__(self, other):
      super().__init__()
      warnings.warn(
          "torch.jit.QuantizedRNNCellBase is deprecated and will be removed in an upcoming "
          "PyTorch release. Please use the torch.ao.nn.quantized.dynamic.RNNCell instead."
      )
  
      self.input_size = other.input_size
      self.hidden_size = other.hidden_size
      self.bias = other.bias
      if not self.bias:
          raise ValueError("Quantized RNN cells require bias terms")
  
      (
          weight_ih,
          col_offsets_ih,
          self.scale_ih,
          self.zero_point_ih,
      ) = torch.fbgemm_linear_quantize_weight(
          other.weight_ih.clone(
              memory_format=torch.contiguous_format
          ).float()
      )
      self.register_buffer("weight_ih", weight_ih)
      self.register_buffer("col_offsets_ih", col_offsets_ih)
      (
          weight_hh,
          col_offsets_hh,
          self.scale_hh,
          self.zero_point_hh,
      ) = torch.fbgemm_linear_quantize_weight(
          other.weight_hh.clone(
              memory_format=torch.contiguous_format
          ).float()
      )
      self.register_buffer("weight_hh", weight_hh)
      self.register_buffer("col_offsets_hh", col_offsets_hh)
  
      packed_ih = torch.fbgemm_pack_quantized_matrix(self.weight_ih)
      self.register_buffer("packed_ih", packed_ih)
      packed_hh = torch.fbgemm_pack_quantized_matrix(self.weight_hh)
      self.register_buffer("packed_hh", packed_hh)
  
      self.bias_ih = torch.nn.Parameter(
          other.bias_ih.clone(
              memory_format=torch.contiguous_format
          ).float(),
          requires_grad=False,
      )
      self.bias_hh = torch.nn.Parameter(
          other.bias_hh.clone(
              memory_format=torch.contiguous_format
          ).float(),
          requires_grad=False,
      )
  
imports: import warnings
  from typing import List, Optional, Tuple
  import torch
  from torch import _VF, Tensor
  from torch.nn.utils.rnn import PackedSequence
label_desc: Use image node_id 1 to create a new QuantizedRNNCellBase object from inherited base classes: torch.jit with example: obj = QuantizedRNNCellBase(other)