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.

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Version

R2023a

Gefragt:

am 11 Okt. 2023

Geschlossen:

am 23 Nov. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by