how to use pre-trained keras model in simulink

we have a pre-trained keras model and it works well in matlab when calling "importKerasNetwork" and also the "predict" function works well.
However, when I try to using the same function in the Matlab Function block in Simulink. The simulink could not work and throwed out an error "Error in default port dimensions function of S-function 'filename/control/MATLAB Function'. This function does not fully set the dimensions of output port 2"

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 8 Mar 2019

Community Treasure Hunt

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

Start Hunting!