Closed hwijeen closed 8 months ago
This PR corrects how to get the number of examples from a batch. The bug is that len(data) does not give the number of examples as it is reshaped to 2d matrix of (bs*seq_len, feat_dim) in line 32.
len(data)
This PR corrects how to get the number of examples from a batch. The bug is that
len(data)
does not give the number of examples as it is reshaped to 2d matrix of (bs*seq_len, feat_dim) in line 32.