o
    {i                     @   s   d dl Z de jfddZdS )    Ndtypec                    s   t | tjr|  S t | trt fdd| D S t | tr+t fdd| D S t | tr; fdd|  D S t | tt	t
ttd frI| S tdt|  )Nc                 3       | ]}t | V  qd S Ncast_to.0ur    I/data/cameron/keygrip/volume_dino_tracks/dinov3/eval/dense/depth/utils.py	<genexpr>       zcast_to.<locals>.<genexpr>c                 3   r   r   r   r   r
   r   r   r      r   c                    s   i | ]
\}}|t | qS r   r   )r   kr	   r
   r   r   
<dictcomp>   s    zcast_to.<locals>.<dictcomp>zUnsupported type: )
isinstancetorchTensortotuplelistdictitemsboolintfloatstrtypeNotImplementedError)or   r   r
   r   r      s   



r   )r   r   r   r   r   r   r   <module>   s   