[webgpu] change default validation mode (#22730)

### Description

Change default validation mode in Release build from "wgpuOnly" to
"basic"
This commit is contained in:
Yulong Wang 2024-11-05 16:18:05 -08:00 committed by GitHub
parent 017246260f
commit 0371e92419
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ std::shared_ptr<IExecutionProviderFactory> WebGpuProviderFactoryCreator::Create(
#ifndef NDEBUG
webgpu::ValidationMode::Full // for debug build, enable full validation by default
#else
webgpu::ValidationMode::WGPUOnly // for release build, only enable WGPU validation.
webgpu::ValidationMode::Basic // for release build, enable basic validation by default
#endif // !NDEBUG
;
std::string validation_mode_str;