Depends on what you want. If you want to use the torchvision transforms but avoid its resize function I guess you could do a torchvision lambda function and perform a opencv resize in there.
Hard to say without knowing your problem though