As far as I know, the Softmax function is applied per channel. How do I apply this per row? And how do I apply this to the custom layer

1 comentario

KALYAN ACHARJYA
KALYAN ACHARJYA el 26 de Mayo de 2021
If you tranpose the data (rotate), then apply on resultant.

Iniciar sesión para comentar.

 Respuesta aceptada

Mahesh Taparia
Mahesh Taparia el 31 de Mayo de 2021

1 voto

Hi
It seems you want to perform the softmax function as per your data/feature dimension. In this case you can create a custom loss layer and define the softmax operation inside that as per your need. You can refer this documentation for custom loss function creation. Also, refer this documentation for custom training loop workflow. Moreover, refer this documentation for custom layer creation.
Hope it will help!

Más respuestas (0)

Categorías

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

Productos

Versión

R2020b

Preguntada:

el 26 de Mayo de 2021

Respondida:

el 31 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by