Apply to Softmax row
조회 수: 6 (최근 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
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!