[pytorch profiler] fix profiler test for windows (#106156)
Summary:
Fixes Windows tests, I am not seeing any CUDA events in the output so this test does not apply there
https://github.com/pytorch/pytorch/pull/105187#issuecomment-1652669293
Test Plan: buck2 run //caffe2/caffe2:caffe2_test_gpu
Reviewed By: chaekit, aaronenyeshi, huydhn
Differential Revision: D47841663
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106156
Approved by: https://github.com/aaronenyeshi, https://github.com/huydhn