o
    r::j                     @  s<   d dl mZ d dlZd dlZd dlmZ G dd deZdS )    )annotationsN)OpRunc                   @  s   e Zd ZdddZdS )BitCasttointc                 C  s   |t jjkr
td|jtjkrtdt j|}|jj	t|j	kr@td|j d|jj	d  d| dt|j	d  d	|
|}|fS )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xr   target_dtyperesult r   d/home/nk/hobo-godmode/plappi-mvp/.venv/lib/python3.10/site-packages/onnx/reference/ops/op_bitcast.py_run   s&   

zBitCast._runN)r   r   )__name__
__module____qualname__r   r   r   r   r   r      s    r   )
__future__r   numpyr   r   onnx.reference.op_runr   r   r   r   r   r   <module>   s
   