In most cases, padding your batch to the length of the longest sequence and truncating to the maximum length a model can accept works pretty well. |
In most cases, padding your batch to the length of the longest sequence and truncating to the maximum length a model can accept works pretty well. |