You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, for i in range(0, len(text) - self.length + 1, self.max_length // 2):. I'm sorry, but what if len(text) is actually smaller than self.length(I assume it's the max_length)? And Why would I need to do this process?
Second, assert all(len(x) == len(windows[0]) for x in windows). Why do I need to make every text the same length?
Next, the following while True. Isn't it going to loop infinitely?
Last, batch = windows[i: i + self.batch_size]. I don't think last batch generated will be the same size as previous ones in first dimension.
Hope someone could answer my questions:)
The text was updated successfully, but these errors were encountered:
First,
for i in range(0, len(text) - self.length + 1, self.max_length // 2):
. I'm sorry, but what if len(text) is actually smaller than self.length(I assume it's the max_length)? And Why would I need to do this process?Second,
assert all(len(x) == len(windows[0]) for x in windows)
. Why do I need to make every text the same length?Next, the following
while True
. Isn't it going to loop infinitely?Last,
batch = windows[i: i + self.batch_size]
. I don't think last batch generated will be the same size as previous ones in first dimension.Hope someone could answer my questions:)
The text was updated successfully, but these errors were encountered: