ValueError: weights can not be broadcast to values. values.rank=0. weights.rank=2. values.shape=(). weights.shape=(32, 128). or AttributeError: 'SparseCategoricalCrossentropyOverBatchFirstDim' object has no attribute '__name__'
ValueError: weights can not be broadcast to values. values.rank=0. weights.rank=2. values.shape=(). weights.shape=(32, 128).
or
AttributeError: 'SparseCategoricalCrossentropyOverBatchFirstDim' object has no attribute '__name__'

hankcs/HanLP,hankcs/HanLP