How to realize realtime classification for bidirectional lstm?

layers = [
sequenceInputLayer(64, Minlength=4)
bilstmLayer(20)
bilstmLayer(10)
fullyConnectedLayer(2)
softmaxLayer
classificationLayer(2)]
I have trained a model using `layers`, everything work fine while doing forward inferencing using `classify`, when change to `classifyAndUpdateState` got wrong classification result.
My question is how to do real time frame by frame classification for bidirectional lstm? More specifically convert to C code using codegen.

Answers (0)

This question is closed.

Products

Release

R2023a

Asked:

on 11 Oct 2023

Closed:

on 23 Nov 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!