什么是sparse_label? 举例子说明?仅仅是[[1,00],[0,1,0],[0,0,1]]和[1,2,3]两种表示的区别?


#1

label's shape should be pred's shape with the axis dimension removed.
i.e. for pred with shape (1,2,3,4) and axis = 2, label's shape should
be (1,2,4).

If sparse_label is False, label should contain probability distribution
and label's shape should be the same with pred: