
    `i                     @    d Z ddlZddlmZ d ZddZ e            ZdS )z#
Methods related to notifications.
    N)_ufunc_configc                  `    t          dt          fi           } t          j        d|            | S )NFallbackWarningalways)actioncategory)typeWarningwarningssimplefilter)r   s    t/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/cupyx/fallback_mode/notification.py_init_warningsr   
   s2    ,wj"==OODDDD    Fc                    t          j                    }t          | dd          }t          | dd          }|s[|r|rd                    |||          }n$|rd                    |          }|dz  }nd}|dz  }|rd	                    |          }nyd
}nv|r1|r/d                    |          }|d                    ||          z  }n$|rd                    |          }|dz  }nd}|dz  }|rd                    |          }|dz  }nd}|dk    r$t	          d                    |                     dS |dk    rt          j        |t          d           dS |dk    rdS |dk    rt          |          J )zA
    Dispatch notifications using appropriate dispatch type.
    
__module__N__name__z0'{}' method not in cupy, falling back to '{}.{}'z'{}' method not in cupy, z(falling back to its numpy implementationz&This method is not available in cupy, zfalling back to numpyz'{}' method not found in cupyz$This method is not available in cupyz%'{}' method is available in cupy but z'cannot be used, falling back to '{}.{}'z8cannot be used, falling back to its numpy implementationz4This method is available in cupy, but cannot be usedz!'{}' method is available in cupy zbut cannot be usedz3This method is available in cupy but cannot be usedprintzWarning: {}warn   )
stacklevelignoreraise)	r   get_config_fallback_modegetattrformatr   r   r   r   AttributeError)funccupy_supportdispatch_type_module_namemsg	raise_msgs          r   _dispatch_notificationr$      s   
 ":<<MdL$//GD*d++E N 	+W 	+DKKw' 'CC 	+-44U;;C==CC:C**C 	?7>>uEEII>II 		+W 		+9@@GGC<CC     CC 	+9@@GGCMMCCHC**C 	N;BB5III--IIMIm""3''(((((	&	 	 c?q999999	(	"	"	'	!	!Y''' 	ur   )F)__doc__r   cupyxr   r   r$   r    r   r   <module>r(      sc             8 8 8 8v !.""r   