
    )`i                        d Z ddlZddlZdej        deddfdZej        dej        dej        d	ej	        d
ej
        dej        dej        dej        dej        dej        di
Zej        dej        dej        dej	        dej
        dej        dej        dej        dej        dej        di
Zej        dej        dej        dej	        dej
        dej        d ej        d!ej        d"ej        d#ej        d$i
Zd%d&d'd(Zd)d*d+d,d-ZdS ).a3  
Copyright (c) 2024 by FlashInfer team.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
    Npathcontentreturnc                    |                                  rPt          | d          5 }|                                |k    r	 d d d            d S 	 d d d            n# 1 swxY w Y   n| j                            dd           t          | d          5 }|                    |           d d d            d S # 1 swxY w Y   d S )NrT)parentsexist_okw)existsopenreadparentmkdirwrite)r   r   fs      h/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/flashinfer/jit/utils.pywrite_if_differentr      sR   {{}} 7$__ 	vvxx7""	 	 	 	 	 	 	 	"	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	$666	dC A	                 s#   AA AB44B8;B8halfnv_bfloat16__nv_fp8_e4m3__nv_fp8_e5m2int8_tuint8_tint32_tuint32_tint64_tuint64_tzcutlass::half_tzcutlass::bfloat16_tzcutlass::float_e4m3_tzcutlass::float_e5m2_tzcutlass::int8_tzcutlass::uint8_tzcutlass::int32_tzcutlass::uint32_tzcutlass::int64_tzcutlass::uint64_tf16bf16e4m3e5m2i8u8i32u32i64u64zPosEncodingMode::kNonezPosEncodingMode::kRoPELlamazPosEncodingMode::kALiBi)r         zMaskMode::kNonezMaskMode::kCausalzMaskMode::kCustomzMaskMode::kMultiItemScoring)r   r(   r)      )__doc__pathlibtorchPathstrr   float16bfloat16float8_e4m3fnfloat8_e5m2int8uint8int32uint32int64uint64	dtype_mapdtype_cutlass_mapfilename_safe_dtype_mappos_encoding_mode_literalmask_mode_literal     r   <module>rA      s      W\ C D     
M6	NM			J	K	K	L*	K	L*	 
M$	N)	0	.	J!	K#	K#	L%	K#	L%  
M5	NF		v	J	K	K	L%	K	L%   $    $	    r@   