We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
经确认,是在reader的实现中使用了 paddle.reader.xmap_readers的原因,去掉不用就不会出现 代码如下:
def reader(): UNK = word_id_dict['<UNK>'] with open(file_name) as file: count = 0 for line in file: image_path,image_tag = line.strip().split("\t") words = image_tag.decode('utf-8', 'ignore').strip().split() if len(words) < min_sentence_length or len( words) > max_sentence_length: continue ids = [word_id_dict.get(w, UNK) for w in words] ids.append(word_id_dict['<EOS>']) target = ids[:] target.append(word_id_dict['<EOS>']) count += 1 yield image_path, ids[:], target[:] return paddle.reader.xmap_readers(image_mapper, reader, 1, buffered_size)
The text was updated successfully, but these errors were encountered:
supplement trt_int8 function (PaddlePaddle#2619)
133375e
wanghaoshuang
Successfully merging a pull request may close this issue.
经确认,是在reader的实现中使用了 paddle.reader.xmap_readers的原因,去掉不用就不会出现
代码如下:
The text was updated successfully, but these errors were encountered: