question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

backend tfjs-backend-webgpu is missing several common kernel ops

See original GitHub issue

after converting my existing app to run with tfjs-backend-webgpu built from main branch
(latest released version tfjs-backend-webgpu 0.0.1-alpha.7 is just too old),
i’ve run into issues running some of the models (all of them work perfectly using webgl backend):

Kernel ‘TopK’ not registered for backend ‘webgpu’ Kernel ‘SplitV’ not registered for backend ‘webgpu’ Kernel ‘FlipLeftRight’ not registered for backend ‘webgpu’ Kernel ‘RotateWithOffset’ not registered for backend ‘webgpu’

note: with remaining running models, with webgpu inference is 300-400ms while with webgl it’s 400-550ms
which makes webgpu ~30% faster than webgl!

btw, i’ll try using webgpu in web workers next as single thread does not come even close of saturating gpu
(average utilization is ~25%)

environment: chrome/94 canary with tfjs 3.8.0 and tjfs-backend-webgpu built from main

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
xhcaocommented, Sep 26, 2021

Thanks yunfei for implementing the split kernel. Now, only topK kernel is unimplemented, but it is the most difficult one, the algorithm of webgl backend is based on the paper https://anilshanbhag.in/static/papers/gputopk_sigmod18.pdf, I will investigate and implement this operator with @carrycooldude, and make some optimizations in future according to webgpu features.

1reaction
qjia7commented, Sep 14, 2021

@carrycooldude You can refer to this one #5585, which implements a new kernel DepthToSpace for webgpu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[tjfs-backend-wasm] Missing Kernel op Atan2 #6313 - GitHub
Have I written custom code : NO · OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 12.1 · TensorFlow.js installed from (npm...
Read more >
Android Kernel ABI Monitoring
Analyzing the kernel's ABI takes multiple steps, most of which can be ... common kernel branches and for several device-specific kernels, ...
Read more >
What to do in case of a Linux kernel panic | Enable Sysadmin
A kernel panic is one of several Linux boot issues. ... Output of the ls command for the boot directory, with the initramfs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found