Question: the code generates following error - Error encountered during training / evaluation letter counting. Please check code. Traceback ( most recent call last ) :
the code generates following error Error encountered during trainingevaluation letter counting. Please check code.
Traceback most recent call last:
File autogradersourcecodewrapperpy line in
lcmodel trainlcclassifierargs trainlcbundles, devlcbundles
File autogradersourcecodetransformerpy line in trainclassifier
outputbatchexpanded outputbatch.unsqueezeexpand seqlength # Expand the output batch
RuntimeError: expandtorchLongTensor size: the number of sizes provided must be greater or equal to the number of dimensions in the tensor
provide updated code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
