
    Si                    B    S SK Jr  S SKrS SKrS SKJr   " S S\5      rg)    )annotationsN)OpRunc                      \ rS rSrSS jrSrg)BitCast   c                0   U[         R                  R                  :X  a  [        S5      eUR                  [
        R                  :X  a  [        S5      e[         R                  R                  U5      nUR                  R                  [
        R                  " U5      R                  :w  aZ  [        SUR                   SUR                  R                  S-   SU S[
        R                  " U5      R                  S-   S3	5      eUR                  U5      nU4$ )Nz"BitCast to STRING is not supportedz$BitCast from STRING is not supportedzLBitCast requires input and output types to have the same bit-width, but got z (   z bits) and z bits))onnxTensorProtoSTRING
ValueErrordtypenpstr_helpertensor_dtype_to_np_dtypeitemsizeview)selfxtotarget_dtyperesults        \/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnx/reference/ops/op_bitcast.py_runBitCast._run   s    !!(((ABB77bggCDD{{;;B?77rxx5>>>&&'ggYb1A1AA1E0F G#nBrxx'='F'F'J&K6S  %y     N)r   int)__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      s    r   r   )
__future__r   numpyr   r
   onnx.reference.op_runr   r   r   r   r   <module>r(      s    #   'e r   