hello everyone.
I wanted to do a simple check  like :
if (output_size.numel() > 0 && output_size[0] == tmp_crop_size[0] && output_size[1] == tmp_crop_size[1])
    ....

but ultimately endedup with:
if (output_size.numel() > 0 && output_size[0].equal(tmp_crop_size[0]) && output_size[1].equal(tmp_crop_size[1]))
    ....

it seems the == operator is not defined/implemented for each tensor element!