This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new cea4c85022 [WEBGPU] Update runtime to remove deprecated API (#17371)
cea4c85022 is described below
commit cea4c850221cbbb757f753408274bdcfbd9bc648
Author: Tianqi Chen <[email protected]>
AuthorDate: Sat Sep 14 07:03:28 2024 -0400
[WEBGPU] Update runtime to remove deprecated API (#17371)
This PR updates webgpu runtime code to remove
deprecated API. unblocks the CI.
---
web/src/webgpu.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/src/webgpu.ts b/web/src/webgpu.ts
index 284d6d3887..d3d431cf1f 100644
--- a/web/src/webgpu.ts
+++ b/web/src/webgpu.ts
@@ -116,7 +116,7 @@ export async function detectGPUDevice():
Promise<GPUDeviceDetectOutput | undefin
requiredFeatures.push("shader-f16");
}
- const adapterInfo = adapter.info || await adapter.requestAdapterInfo();
+ const adapterInfo = adapter.info;
const device = await adapter.requestDevice({
requiredLimits: {
maxBufferSize: requiredMaxBufferSize,