received rank:2 != label_dims.size():3
Created by: weiheshiqingchun
报错: File "tools/train.py", line 124, in main(args)
Error Message Summary:
InvalidArgumentError: If Attr(soft_label) == true, Input(X) and Input(Label) shall have the same dimensions. But received: the dimensions of Input(X) is [2],the shape of Input(X) is [-1, 2], the dimensions of Input(Label) is [3], the shape ofInput(Label) is [-1, 1, 2] [Hint: Expected rank == label_dims.size(), but received rank:2 != label_dims.size():3.] at (D:\1.8.1\paddle\paddle\fluid\operators\cross_entropy_op.cc:63) [operator < cross_entropy > error] INFO 2020-05-23 18:17:34,812 utils.py:272] terminate all the procs ERROR 2020-05-23 18:17:34,812 utils.py:416] ABORT!!! Out of all 1 trainers, the trainer process with rank=[0] was aborted. Please check its log. INFO 2020-05-23 18:17:34,813 utils.py:272] terminate all the procs
图片512*512png,8位深度,类别1,2,3。这个报错里的rank和label_dims.size()分别是什么意思??