
    &Vf<                     "    ddZ ddZ	 	 ddZdS )Fc           	         d| d| d| d|  }t          | t                    r| f|z  }n	 t          |           }n# t          $ r t	          |          w xY wt          |          |k    rt	          |          |D ]N}	 t          |           # t          t          f$ r( |d| dt          |           z  }t	          |          w xY w|rd |D             }d}nd	 |D             }d
}|r|d| d| dz  }t	          |          |S )a'  Transforms non-negative/positive integer/integers into an integer tuple.

    Args:
        value: int or iterable of ints. The value to validate and convert.
        n: int. The size of the tuple to be returned.
        name: string. The name of the argument being validated, e.g. "strides"
            or "kernel_size". This is only used to format error messages.
        allow_zero: bool, defaults to `False`. A `ValueError` will raised
            if zero is received and this argument is `False`.

    Returns:
        A tuple of n integers.
    zThe `z` argument must be a tuple of z integers. Received =zincluding element z	 of type c                     h | ]
}|d k     |S      .0vs     `/var/www/html/software/conda/lib/python3.11/site-packages/keras/src/utils/argument_validation.py	<setcomp>z$standardize_tuple.<locals>.<setcomp>(   s    >>>AAa    z>= 0c                     h | ]
}|d k    |S r   r   r   s     r   r   z$standardize_tuple.<locals>.<setcomp>+   s    ???AQar   z> 0z, including values z that do not satisfy `value `)
isinstanceinttuple	TypeError
ValueErrorlentype)	valuenname
allow_zero	error_msgvalue_tuplesingle_valueunqualified_valuesreq_msgs	            r   standardize_tupler       s   	# 	# 	#A 	# 	#	# 	# 	# 	# 
 % ,hl	(,,KK 	( 	( 	(Y'''	({q  Y'''' 	, 	,L,L!!!!	* , , ,1 1 1 ..1 1	 !+++,  >>>>>????? $6"4 6 6+26 6 6	
	 ###s   < A B9C	c                     t          | t          t          f          r| S |                                 }|rh d}nddh}||vrt	          d| d|           |S )N>   samevalidcausalr#   r"   z6The `padding` argument must be a list/tuple or one of . Received: )r   listr   lowerr   )r   allow_causalpaddingallowed_valuess       r   standardize_paddingr+   8   s    %$'' kkmmG +444!6*n$$## # # #
 
 	

 Nr   c                     |r| dS |rt          |           rdS t          | t                    r| |v rdS t          d| d| d| d| d|  
          )z0Validates the correctness of a string-based arg.NzUnknown value for `z` argument of z. Allowed values are: r%   r   )callabler   strr   )r   allowable_stringscaller_namearg_name
allow_noneallow_callabless         r   validate_string_argr4   I   s      em	 Xe__ 	E3		 E->$>$>
	h 	 	k 	 	0	 		 		 	  r   N)F)FF)r    r+   r4   r   r   r   <module>r5      sT   4 4 4 4n   ,      r   