How to create weighted cross entropy loss in pytorch?

前端 未结 0 718
夕颜
夕颜 2021-02-07 23:03

I was trying to make a cross entropy weighted on pytorch following with the normal cross entropy, but I don\'t know how to insert the weight in it. The equation is:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题