[CPU] Add torch.trace for complex tensors (#50380)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50380
Test Plan: Imported from OSS
Reviewed By: ezyang
Differential Revision: D25949361
Pulled By: anjali411
fbshipit-source-id: 9910bc5b532c9bf3add530221d643b2c41c62d01