Apply to Softmax row

8 Ansichten (letzte 30 Tage)
JaeHyeon Lee
JaeHyeon Lee am 26 Mai 2021
Beantwortet: Mahesh Taparia am 31 Mai 2021
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 Kommentar
KALYAN ACHARJYA
KALYAN ACHARJYA am 26 Mai 2021
If you tranpose the data (rotate), then apply on resultant.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mahesh Taparia
Mahesh Taparia am 31 Mai 2021
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!

Weitere Antworten (0)

Kategorien

Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by