Why the output is same within a batch use BertForSequenceClassification?
❓ Questions & Help
I use BertForSequenceClassification for classification task, but the output witin a batch became same after just 2 or 3 batch, the value between different batch is different, really strange.
batch 1 output:
[-0.5966, 0.6081],
[-0.4659, 0.3766],
[-0.3595, 0.1334],
[-0.4178, 0.6873],
[-0.3884, 0.2640],
[-0.5017, 0.3465],
[-0.5978, 0.4961],
[-0.3146, 0.6879],
[-0.6525, 0.2702],
[-0.2500, 0.1232],
[-0.3137, 0.4212],
[-0.2663, 0.5169],
[-0.5225, 0.7992],
[-0.4844, 0.1942],
[-0.1459, 0.4033],
[-0.9007, 0.5122],
[-0.5833, 0.8187],
[-0.5552, 0.1253],
[-0.5420, -0.1123]], device='cuda:0', grad_fn=
3
(tensor(0.7688, device='cuda:0', grad_fn=
(tensor(1.1733, device='cuda:0', grad_fn=
Hello, could you provide a script so that we may better understand the problem here?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.