
    sgy                        d dl Z  G d de j                  j                        Z G d de j                  j                        Z G d de j                  j                        Z G d d	e      Z G d
 de      Z G d de      Z G d de j                  j                        Z	 G d de	      Z
 G d de	      Zd Ze j                  fdZe j                  fdZy)    Nc                       e Zd Zd Zy)QuantizedLinearc                     t        d      )Nzjtorch.jit.QuantizedLinear is no longer supported. Please use torch.ao.nn.quantized.dynamic.Linear instead.RuntimeErrorselfothers     F/var/www/html/venv/lib/python3.12/site-packages/torch/jit/quantized.py__init__zQuantizedLinear.__init__   s    <
 	
    N__name__
__module____qualname__r    r   r   r   r          
r   r   c                        e Zd Z fdZ xZS )QuantizedLinearFP16c                 6    t         |           t        d      )Nzrtorch.jit.QuantizedLinearFP16 is no longer supported. Please use the torch.ao.nn.quantized.dynamic.Linear instead.superr   r   r	   r
   	__class__s     r   r   zQuantizedLinearFP16.__init__   s!    K
 	
r   r   r   r   r   __classcell__r   s   @r   r   r          
 
r   r   c                       e Zd Zd Zy)QuantizedRNNCellBasec                     t        d      )Nzttorch.jit.QuantizedRNNCellBase is no longer supported. Please use the torch.ao.nn.quantized.dynamic.RNNCell instead.r   r   s     r   r   zQuantizedRNNCellBase.__init__       L
 	
r   Nr   r   r   r   r    r       r   r   r    c                       e Zd Zd Zy)QuantizedRNNCellc                     t        d      )Nzptorch.jit.QuantizedRNNCell is no longer supported. Please use the torch.ao.nn.quantized.dynamic.RNNCell instead.r   r   s     r   r   zQuantizedRNNCell.__init__!   r"   r   Nr   r   r   r   r$   r$       r   r   r$   c                        e Zd Z fdZ xZS )QuantizedLSTMCellc                 8    t         |   |       t        d      )Nzrtorch.jit.QuantizedLSTMCell is no longer supported. Please use the torch.ao.nn.quantized.dynamic.LSTMCell instead.r   r   s     r   r   zQuantizedLSTMCell.__init__)   s#    M
 	
r   r   r   s   @r   r'   r'   (   r   r   r'   c                        e Zd Z fdZ xZS )QuantizedGRUCellc                 8    t         |   |       t        d      )Nzptorch.jit.QuantizedGRUCell is no longer supported. Please use the torch.ao.nn.quantized.dynamic.GRUCell instead.r   r   s     r   r   zQuantizedGRUCell.__init__2   s#    L
 	
r   r   r   s   @r   r*   r*   1   r   r   r*   c                   *    e Zd Zej                  fdZy)QuantizedRNNBasec                     t        d      )Nzhtorch.jit.QuantizedRNNBase is no longer supported. Please use the torch.ao.nn.quantized.dynamic instead.r   r	   r
   dtypes      r   r   zQuantizedRNNBase.__init__;   s    D
 	
r   N)r   r   r   torchint8r   r   r   r   r-   r-   :   s    $)JJ 
r   r-   c                       e Zd Zd Zy)QuantizedLSTMc                     t        d      )Nzjtorch.jit.QuantizedLSTM is no longer supported. Please use the torch.ao.nn.quantized.dynamic.LSTM instead.r   r/   s      r   r   zQuantizedLSTM.__init__C   s    I
 	
r   Nr   r   r   r   r4   r4   B   r   r   r4   c                       e Zd Zd Zy)QuantizedGRUc                     t        d      )Nzhtorch.jit.QuantizedGRU is no longer supported. Please use the torch.ao.nn.quantized.dynamic.GRU instead.r   )r	   argskwargss      r   r   zQuantizedGRU.__init__K   s    H
 	
r   Nr   r   r   r   r7   r7   J   r   r   r7   c                     t        d      )Nzyquantize_rnn_cell_modules function is no longer supported. Please use torch.ao.quantization.quantize_dynamic API instead.r   )modules    r   quantize_rnn_cell_modulesr=   R       
	I r   c                     t        d      )Nzwquantize_linear_modules function is no longer supported. Please use torch.ao.quantization.quantize_dynamic API instead.r   r<   r0   s     r   quantize_linear_modulesrA   Y   r>   r   c                     t        d      )Nztquantize_rnn_modules function is no longer supported. Please use torch.ao.quantization.quantize_dynamic API instead.r   r@   s     r   quantize_rnn_modulesrC   `   r>   r   )r1   jitScriptModuler   r   r    r$   r'   r*   r-   r4   r7   r=   r2   rA   rC   r   r   r   <module>rF      s    
eii,, 

%))00 

59911 

+ 

, 

+ 

uyy-- 

$ 

# 
 +0**  (-zz r   