Apply to Softmax row

조회 수: 6 (최근 30일)
JaeHyeon Lee
JaeHyeon Lee 2021년 5월 26일
답변: Mahesh Taparia 2021년 5월 31일
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에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by