Skip to content
Snippets Groups Projects
  • Alexandru-Mihai GHERGHESCU's avatar
    7aa99b4a
    Fix bad calculation for number of batches · 7aa99b4a
    Alexandru-Mihai GHERGHESCU authored
    There was a corner case when the shape of the predictions y of the
    dataset would not be correct, due to the fact that the number of batches
    was miscalculated.
    
    This happened when `batch_len` was exactly divisible by `seq_len`, since
    the predictions, which are simply the text shifted once to the right,
    would not have that extra column at the end.
    
    Fix the above issue by decrementing the number of available batches with
    1 when `batch_len` exactly divides by `seq_len`.
    7aa99b4a
    History
    Fix bad calculation for number of batches
    Alexandru-Mihai GHERGHESCU authored
    There was a corner case when the shape of the predictions y of the
    dataset would not be correct, due to the fact that the number of batches
    was miscalculated.
    
    This happened when `batch_len` was exactly divisible by `seq_len`, since
    the predictions, which are simply the text shifted once to the right,
    would not have that extra column at the end.
    
    Fix the above issue by decrementing the number of available batches with
    1 when `batch_len` exactly divides by `seq_len`.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.