Use relu function for lstmlayer

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?

Respuestas (1)

slevin Lee
slevin Lee el 21 de Oct. de 2022

0 votos

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
╮(╯▽╰)╭

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 26 de Jul. de 2019

Respondida:

el 21 de Oct. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by