Fix upsample bicubic2d batching handling on CPU. (#52389)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52389
Fixes: https://github.com/pytorch/pytorch/issues/49159
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D26496319
Pulled By: gchanan
fbshipit-source-id: d385cd683ef09e0596a9875ce84d03e6e77acc93