Let random seed setting work on xpu device (#2270)
Summary:
This Pull Request relates to [Roadmap Issue https://github.com/pytorch/benchmark/issues/1293](https://github.com/pytorch/benchmark/issues/1293) by enhancing our benchmark coverage.
Currently, Torchbench utilizes a custom random seed function that is incompatible with the XPU device backend.
This incompatibility affects models that include random data augmentation operations, leading to accuracy check failures due to variations in input data across two separate runs.
In this PR, we introduce support for setting a random seed for the XPU backend.
Pull Request resolved: https://github.com/pytorch/benchmark/pull/2270
Reviewed By: davidberard98
Differential Revision: D57884498
Pulled By: xuzhao9
fbshipit-source-id: 24234674333945782b233191e42a8b344e90d74c