o
    yi                     @   s*   d dl mZ dedededdfddZdS )	    )Tensorpredstargetnum_outputsreturnNc                 C   sz   | j dks
|j dkrtd|j  d| j  d|dkr | j dks+|dkr9|| jd kr;td| d| jd  ddS dS )zKCheck that predictions and target have the correct shape, else raise error.   zWExpected both predictions and target to be either 1- or 2-dimensional tensors, but got z and .   zPExpected argument `num_outputs` to match the second dimension of input, but got N)ndim
ValueErrorshape)r   r   r    r   \/home/ubuntu/.local/lib/python3.10/site-packages/torchmetrics/functional/regression/utils.py _check_data_shape_to_num_outputs   s   (r   )torchr   intr   r   r   r   r   <module>   s   