You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ET-VK][benchmarking][ez] Don't perform copies when benchmarking
## Context
The bencmarks generated by the generated operator benchmarks currently have a high amount of copy overhead:
1. Copy from CPU to staging
2. Copy from staging to GPU Buffer/Image
And this is done for both inputs and outputs.
Since benchmarks are not correctness tests, copying data in/out is not really necessary especially if the compute shader does not have behaviour dependent on the contents of the input/output tensor.
Make it so that by default, the benchmark will only execute the op without adding copy overhead. However, test cases can optionally specify that the copy overhead should be included in the benchmark.
Differential Revision: [D71570143](https://our.internmc.facebook.com/intern/diff/D71570143/)
ghstack-source-id: 273059929
Pull Request resolved: #9468
0 commit comments