Skip to content

tfjs-tflite gives the error RuntimeError: Aborted(). Build with -s ASSERTIONS=1 for more info. #6000

@RaphaelRoyerRivard

Description

@RaphaelRoyerRivard

I'm trying to use the tfjs-tflite package to run a segmentation model but when I load the model, I get the following warning from tflite_web_api_cc_simd.js:9

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.

And when I try to run the model, I get the following error from the same line

RuntimeError: Aborted(). Build with -s ASSERTIONS=1 for more info.
    at abort (tflite_web_api_cc_simd.js:9:9277)
    at _abort (tflite_web_api_cc_simd.js:9:59963)
    at tflite_web_api_cc_simd.wasm:0x1e418
    at tflite_web_api_cc_simd.wasm:0x2c4ac6
    at tflite_web_api_cc_simd.wasm:0x39623
    at tflite_web_api_cc_simd.wasm:0x49174
    at tflite_web_api_cc_simd.wasm:0x3084f7
    at tflite_web_api_cc_simd.wasm:0x17b2a
    at TFLiteWebModelRunner$Infer [as Infer] (eval at new_ (tflite_web_api_cc_simd.js:9:37941), <anonymous>:8:10)
    at module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.infer (tflite_web_api_client.js?965d:1745:134)

I don't understand why it's being aborted and what I should build with -s ASSERTIONS=1 to get more info...
Can somebody explain to me what's the procedure?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions