§
    ’©ºj  ã                   ó2   — d dl mZ 	 d
dededededdf
d	„ZdS )é    )ÚTensorFÚpredsÚtargetÚnum_outputsÚallow_1d_reshapeÚreturnNc                 óN  — | j         dk    s|j         dk    r t          d|j         › d| j         › d�¦  «        ‚d}|s#|dk    o| j         dk    p| j        d         dk     }|dk    o| j         dk    o|| j        d         k    }|s|r!t          d|› d| j        d         › d�¦  «        ‚dS )	aœ  Check that predictions and target have the correct shape, else raise error.

    Args:
        preds: Predicted tensor
        target: Ground truth tensor
        num_outputs: Number of outputs in multioutput setting
        allow_1d_reshape: Allow that for num_outputs=1 that preds and target does not need to be 1d tensors. Instead
            code that follows are expected to reshape the tensors to 1d.

    é   zWExpected both predictions and target to be either 1- or 2-dimensional tensors, but got z and ú.Fé   zPExpected argument `num_outputs` to match the second dimension of input, but got N)ÚndimÚ
ValueErrorÚshape)r   r   r   r   Úcond1Úcond2s         úx/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/torchmetrics/functional/regression/utils.pyÚ _check_data_shape_to_num_outputsr      s  € ð „z�A‚~€~˜œ qš˜Ýð8Øœð8ð 8Ø*/¬*ð8ð 8ð 8ñ
ô 
ð 	
ð €EØð RØ˜qÒ ÐQ¨%¬*¸ª/Ð*P¸U¼[È¼^ÈqÒ=PÐ%QˆØ˜!ŠOÐP ¤
¨Q¢ÐP°;À%Ä+ÈaÄ.Ò3P€EØð 
�ð 
Ýð&Ð_jð &ð &Ø”K ”Nð&ð &ð &ñ
ô 
ð 	
ð
ð 
ó    )F)Útorchr   ÚintÚboolr   © r   r   ú<module>r      sk   ðð Ð Ð Ð Ð Ð ð OTð
ð 
Øð
Ø!ð
Ø03ð
ØGKð
à	ð
ð 
ð 
ð 
ð 
ð 
r   