
    &`i                         d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
  e            \  ZZZe G d de                      ZdS )	    )Optional)OldAPIStackoverride)try_import_tf)Schedule)
TensorTypec                        e Zd ZdZd
dedee         f fdZ ee	          de
de
fd            Z ee	          de
de
fd	            Z xZS )ConstantSchedulez6A Schedule where the value remains constant over time.Nvalue	frameworkc                 Z    t                                          |           || _        dS )zInitializes a ConstantSchedule instance.

        Args:
            value: The constant value to return, independently of time.
            framework: The framework descriptor string, e.g. "tf",
                "torch", or None.
        )r   N)super__init___v)selfr   r   	__class__s      /home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/ray/rllib/utils/schedules/constant_schedule.pyr   zConstantSchedule.__init__   s+     	9---    treturnc                     | j         S N)r   r   r   s     r   _valuezConstantSchedule._value   s	    wr   c                 @    t                               | j                  S r   )tfconstantr   r   s     r   _tf_value_opzConstantSchedule._tf_value_op   s    {{47###r   r   )__name__
__module____qualname____doc__floatr   strr   r   r   r   r   r   __classcell__)r   s   @r   r
   r
      s        @@	 	e 	 	 	 	 	 	 	 Xh
 z     Xh$j $Z $ $ $ $ $ $ $ $r   r
   N)typingr   ray.rllib.utils.annotationsr   r   ray.rllib.utils.frameworkr   "ray.rllib.utils.schedules.scheduler   ray.rllib.utils.typingr   tf1r   tfvr
    r   r   <module>r.      s          = = = = = = = = 3 3 3 3 3 3 7 7 7 7 7 7 - - - - - -}R $ $ $ $ $x $ $ $ $ $r   