Error while deploying the EdgeImpulse ML Model

While at Deployment dashboard, I have selected WebAssembly, Enable EON Compiler is on, Quantized (int8) is currently selected and built, I am getting the following error at the build output:

Creating job… OK (ID: 451417)

Writing templates OK

Scheduling job in cluster…
Job started
Compiling EON model…
Compiling EON model OK

Removing clutter…
Removing clutter OK

Copying output…
Copying output OK

Job started
Compiling WASM library…
mkdir -p build/
emcc -DTF_LITE_DISABLE_X86_NEON -std=c++11 -I. -Isource -Iedge-impulse-sdk/ -Iedge-impulse-sdk/utensor -Iedge-impulse-sdk/utensor/src -Iedge-impulse-sdk/utensor/src/uTensor -Iedge-impulse-sdk/utensor/src/uTensor/core -Iedge-impulse-sdk/utensor/src/uTensor/loaders -Iedge-impulse-sdk/utensor/src/uTensor/ops -Iedge-impulse-sdk/utensor/src/uTensor/util -Iedge-impulse-sdk/tensorflow -Iedge-impulse-sdk/third_party -Iedge-impulse-sdk/third_party/flatbuffers -Iedge-impulse-sdk/third_party/flatbuffers/include -Iedge-impulse-sdk/third_party/flatbuffers/include/flatbuffers -Iedge-impulse-sdk/third_party/gemmlowp/ -Iedge-impulse-sdk/third_party/gemmlowp/fixedpoint -Iedge-impulse-sdk/third_party/gemmlowp/internal -Iedge-impulse-sdk/third_party/ruy -Imodel-parameters -Itflite-model -Iedge-impulse-sdk/anomaly -Iedge-impulse-sdk/classifier -Iedge-impulse-sdk/dsp -Iedge-impulse-sdk/dsp/kissfft -Iedge-impulse-sdk/porting -O3 -s WASM=1 -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s TOTAL_MEMORY=128MB --bind tflite-model/*.cpp emcc_binding.cpp /app/libsdk.o -o build/edge-impulse-standalone.js
tflite-model/trained_model_compiled.cpp:5991:72: warning: format specifies type ‘unsigned int’ but the argument has type ‘size_t’ (aka ‘unsigned long’) [-Wformat]
printf(“ERR: Failed to allocate persistent buffer of size %u\n”, bytes);
~~ ^~~~~
%zu
1 warning generated.
Compiling WASM library OK

Job completed

Hi @stratosb,

Thanks for reporting the warning, we will fix the code soon.
In the meantime this should not prevent you from deploying the WebAssembly package.

Aurelien

Hi @aurel,

Thanks for your reply.

Stratos

I am not getting the error anymore.
It compiling WASM library fine.
Thank you.

2 Likes