Computed gradients for a keras model in MATLAB
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Don Mathis
2018-6-26
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!