Use relu function for lstmlayer

2 ビュー (過去 30 日間)
Tomohiro Oka
Tomohiro Oka 2019 年 7 月 26 日
回答済み: slevin Lee 2022 年 10 月 21 日
I would like to change the StateActivationFuction of lstmLayer to Relu fuction, but only 'tanh' and 'softsign' are supported in the deep learning tool box.
Is there any solutions for changing the activation function ,or the way to make customed lstmLayer with Relu as the StateActivation?

回答 (1 件)

slevin Lee
slevin Lee 2022 年 10 月 21 日
GateActivationFunction — Activation function to apply to the gates
  • 'sigmoid' – Use the sigmoid function σ(x)=(1+ex)1.
  • 'hard-sigmoid' – Use the hard sigmoid function
no Relu fuction
╮(╯▽╰)╭

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by