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 WASM does not implement kernel ResizeNearestNeighbor

See original GitHub issue

attempting to run nudenet model using wasm backend
converted from tf saved to tfjs graph using tensorflowjs_convert:

engine.js:391 Uncaught (in promise) Error: Kernel 'ResizeNearestNeighbor' not registered for backend 'wasm'
    at Engine2.runKernel (engine.js:391)
    at resizeNearestNeighbor_ (resize_nearest_neighbor.js:60)
    at Object.resizeNearestNeighbor__op [as resizeNearestNeighbor] (operation.js:44)
    at executeOp$9 (image_executor.js:34)
    at operation_executor.js:62
    at engine.js:327
    at Engine2.scopedRun (engine.js:337)
    at Engine2.tidy (engine.js:326)
    at tidy (globals.js:175)
    at operation_executor.js:62

same model works fine using weblgl backend

as per #4386 it has been implemented, but it seems it was implemented for cpu backend only although title specifies wasm?

environment: tfjs 3.2.0 on chrome 88 on ubuntu 20.10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
austuncommented, May 24, 2022

@jinjingforever @rthadur Do you have any estimation about the delivery date of this feature?

1reaction
hartmannr76commented, Jun 22, 2022

@jinjingforever FYI, posted a fix at #6524

Read more comments on GitHub >

github_iconTop Results From Across the Web

@tensorflow/tfjs-backend-wasm - npm
This package adds a WebAssembly backend to TensorFlow.js. It currently supports the following models from our ...
Read more >
UNPKG - @tensorflow/tfjs-backend-cpu
n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the...
Read more >
Adding Ops to WASM backend - Google Groups
I am new to TensorFlow.js and would like to add the "Fill" Op to the WASM backend to use the face-api library. I...
Read more >
Changelog | Barracuda | 3.0.0 - Unity - Manual
Download from texture use pixel shader when compute shader are not available. Improved support for dynamic input shape and rank inference. Fixed.
Read more >
TensorFlow.js - Browse /tfjs-v3.19.0 at SourceForge.net
SourceForge is not affiliated with TensorFlow.js. ... [wasm] Build tfjs-backend-wasm entirely with Bazel (#6458). webgpu: Support depthwise conv2d with nchw ...
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