U
    why                     @   s   d dl Z G dd de jjZG dd de jjZG dd de jjZG dd	 d	eZG d
d deZG dd deZG dd de jjZ	G dd de	Z
G dd de	Zdd Ze jfddZe jfddZdS )    Nc                   @   s   e Zd Zdd ZdS )QuantizedLinearc                 C   s   t dd S )Nzjtorch.jit.QuantizedLinear is no longer supported. Please use torch.ao.nn.quantized.dynamic.Linear instead.RuntimeErrorselfother r   E/var/www/html/venv/lib/python3.8/site-packages/torch/jit/quantized.py__init__   s    zQuantizedLinear.__init__N__name__
__module____qualname__r
   r   r   r   r	   r      s   r   c                       s   e Zd Z fddZ  ZS )QuantizedLinearFP16c                    s   t    tdd S )Nzrtorch.jit.QuantizedLinearFP16 is no longer supported. Please use the torch.ao.nn.quantized.dynamic.Linear instead.superr
   r   r   	__class__r   r	   r
      s    
zQuantizedLinearFP16.__init__r   r   r   r
   __classcell__r   r   r   r	   r      s   r   c                   @   s   e Zd Zdd ZdS )QuantizedRNNCellBasec                 C   s   t dd S )Nzttorch.jit.QuantizedRNNCellBase is no longer supported. Please use the torch.ao.nn.quantized.dynamic.RNNCell instead.r   r   r   r   r	   r
      s    zQuantizedRNNCellBase.__init__Nr   r   r   r   r	   r      s   r   c                   @   s   e Zd Zdd ZdS )QuantizedRNNCellc                 C   s   t dd S )Nzptorch.jit.QuantizedRNNCell is no longer supported. Please use the torch.ao.nn.quantized.dynamic.RNNCell instead.r   r   r   r   r	   r
   !   s    zQuantizedRNNCell.__init__Nr   r   r   r   r	   r       s   r   c                       s   e Zd Z fddZ  ZS )QuantizedLSTMCellc                    s   t  | tdd S )Nzrtorch.jit.QuantizedLSTMCell is no longer supported. Please use the torch.ao.nn.quantized.dynamic.LSTMCell instead.r   r   r   r   r	   r
   )   s    zQuantizedLSTMCell.__init__r   r   r   r   r	   r   (   s   r   c                       s   e Zd Z fddZ  ZS )QuantizedGRUCellc                    s   t  | tdd S )Nzptorch.jit.QuantizedGRUCell is no longer supported. Please use the torch.ao.nn.quantized.dynamic.GRUCell instead.r   r   r   r   r	   r
   2   s    zQuantizedGRUCell.__init__r   r   r   r   r	   r   1   s   r   c                   @   s   e Zd ZejfddZdS )QuantizedRNNBasec                 C   s   t dd S )Nzhtorch.jit.QuantizedRNNBase is no longer supported. Please use the torch.ao.nn.quantized.dynamic instead.r   r   r   dtyper   r   r	   r
   ;   s    zQuantizedRNNBase.__init__N)r   r   r   torchint8r
   r   r   r   r	   r   :   s   r   c                   @   s   e Zd Zdd ZdS )QuantizedLSTMc                 C   s   t dd S )Nzjtorch.jit.QuantizedLSTM is no longer supported. Please use the torch.ao.nn.quantized.dynamic.LSTM instead.r   r   r   r   r	   r
   C   s    zQuantizedLSTM.__init__Nr   r   r   r   r	   r   B   s   r   c                   @   s   e Zd Zdd ZdS )QuantizedGRUc                 O   s   t dd S )Nzhtorch.jit.QuantizedGRU is no longer supported. Please use the torch.ao.nn.quantized.dynamic.GRU instead.r   )r   argskwargsr   r   r	   r
   K   s    zQuantizedGRU.__init__Nr   r   r   r   r	   r    J   s   r    c                 C   s   t dd S )Nzyquantize_rnn_cell_modules function is no longer supported. Please use torch.ao.quantization.quantize_dynamic API instead.r   )moduler   r   r	   quantize_rnn_cell_modulesR   s    r$   c                 C   s   t dd S )Nzwquantize_linear_modules function is no longer supported. Please use torch.ao.quantization.quantize_dynamic API instead.r   r#   r   r   r   r	   quantize_linear_modulesY   s    r&   c                 C   s   t dd S )Nztquantize_rnn_modules function is no longer supported. Please use torch.ao.quantization.quantize_dynamic API instead.r   r%   r   r   r	   quantize_rnn_modules`   s    r'   )r   ZjitZScriptModuler   r   r   r   r   r   r   r   r    r$   r   r&   r'   r   r   r   r	   <module>   s   	
		