mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-19 19:00:47 +00:00
use rvalue ref
This commit is contained in:
parent
57a34ecbe6
commit
0bb38b73d6
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ void WebGpuContext::Initialize(const WebGpuBufferCacheConfig& buffer_cache_confi
|
|||
wgpu::CallbackMode::WaitAnyOnly,
|
||||
[](wgpu::RequestAdapterStatus status, wgpu::Adapter adapter, wgpu::StringView message, wgpu::Adapter* ptr) {
|
||||
ORT_ENFORCE(status == wgpu::RequestAdapterStatus::Success, "Failed to get a WebGPU adapter: ", std::string_view{message});
|
||||
*ptr = adapter;
|
||||
*ptr = std::move(adapter);
|
||||
},
|
||||
&adapter),
|
||||
UINT64_MAX));
|
||||
|
|
@ -127,7 +127,7 @@ void WebGpuContext::Initialize(const WebGpuBufferCacheConfig& buffer_cache_confi
|
|||
wgpu::CallbackMode::WaitAnyOnly,
|
||||
[](wgpu::RequestDeviceStatus status, wgpu::Device device, wgpu::StringView message, wgpu::Device* ptr) {
|
||||
ORT_ENFORCE(status == wgpu::RequestDeviceStatus::Success, "Failed to get a WebGPU device: ", std::string_view{message});
|
||||
*ptr = device;
|
||||
*ptr = std::move(device);
|
||||
},
|
||||
&device_),
|
||||
UINT64_MAX));
|
||||
|
|
|
|||
Loading…
Reference in a new issue