Computed gradients for a keras model in MATLAB
1 view (last 30 days)
Show older comments
MATLAB via NN Toolbox now supports directly importing and working with keras models. Is it possible to compute gradients w.r.to input/output of any layer, similar to keras backend function K.gradients() ?
0 Comments
Answers (1)
Don Mathis
on 26 Jun 2018
If you're referring to the Tensorflow-Keras Importer support package, that imports a Keras model into MATLAB and returns a MATLAB (Neural Network Toolbox) model. The Keras model is not retained; it is translated into a MATLAB model, so you can only perform operations defined on MATLAB models from that point onward.
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!