Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • 合并请求
  • !8314

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板

Inference example and inference-framework unit-test for NMT model !8314

  • Report abuse
!8314 已关闭 2月 09, 2018 由 saxon_zh@saxon_zh 创建
#<User:0x00007f0e6095a158>
  • 概览 11
  • 提交 22
  • 变更 5

Created by: sidgoyal78

Addresses second part of #7999 (closed)

Background The fluid example of NMT model has 2 parts: train_main() and decode_main(). As discussed with @jacquesqiao , the current implementation of the book chapter (as of Feb 8, 2018), is a bit disjoint. More specifically, the decode_main should ideally use the parameters post training (that is, after calling train_main()). However, currently the train_main() demonstrates the working example of dynamic RNN training, and current decode_main() uses a random initialization of the weights in the encoder-decoder and demonstrates correctness of beam search. Hence, both of the modules are pretty independent.

Current progress (updated) In order to add inference example for the "inference project", one option is to add "infer" methods for each of the two train_main() and decode_main(). This is what is done in this PR.

  • For the infer method for train_main, we have to provide both source as well as target sequence, even though ideally we don't have access to the target (This is the same issue as in PR #8176). This works.
  • For the infer method for decode_main, we add the function in Python and it works.
  • The C++ unit-tests corresponding to the 2 infer methods have been added. Since, we don't have a CUDA implementation of beam search op yet, the unit-test for decode runs only for CPU.
指派人
分配到
审核者
Request review from
无
里程碑
无
分配里程碑
工时统计
标识: paddlepaddle/Paddle!8314
Source branch: github/fork/sidgoyal78/bc_machinetranslation
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7