Apply to Softmax row

7 次查看(过去 30 天)
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 个评论
KALYAN ACHARJYA
KALYAN ACHARJYA 2021-5-26
If you tranpose the data (rotate), then apply on resultant.

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by