未验证 提交 5f7ffbc2 编写于 作者: Q Qdriving 提交者: GitHub

Update reader.py

上级 2f93ff91
......@@ -102,9 +102,9 @@ class Reader(ReaderBase):
else:
len_seq = len(b[i][0])
start_idx = random.randint(0, self.max_neg_item - len_seq - 1)
self.neg_candidate_item[start_idx:start_idx + len_seq +1] = b[
self.neg_candidate_item[start_idx:start_idx + len_seq + 1] = b[
i][0]
self.neg_candidate_cat[start_idx:start_idx + len_seq +1] = b[
self.neg_candidate_cat[start_idx:start_idx + len_seq + 1] = b[
i][1]
for _ in range(len(b[i][0])):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册