Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • Issue
  • #2916

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看板
已关闭
开放中
Opened 7月 17, 2017 by saxon_zh@saxon_zhGuest

gpu训练配置下,crf_decoding_layer设置device=-1与否都会core

Created by: colin1988

使用gpu训练一个LSTM-CRF模型,CRF解码层无论标识为CPU设备与否都会导致core

I0713 20:41:26.991703 15845 Util.cpp:130] Calling runInitFunctions
I0713 20:41:26.992059 15845 Util.cpp:143] Call runInitFunctions done.
[INFO 2017-07-13 20:41:27,173 networks.py:1466] The input order is [sent_char, sent_seg_flag, target]
[INFO 2017-07-13 20:41:27,173 networks.py:1472] The output order is [crf]
I0713 20:41:27.178159 15845 Trainer.cpp:170] trainer mode: Normal
*** Aborted at 1499949687 (unix time) try "date -d @1499949687" if you are using GNU date ***
PC: @           0x6bb953 paddle::CRFDecodingLayer::init()
*** SIGSEGV (@0x20) received by PID 15845 (TID 0x7f55e9529840) from PID 32; stack trace: ***
    @     0x7f55e9104160 (unknown)
    @           0x6bb953 paddle::CRFDecodingLayer::init()
    @           0x625477 paddle::NeuralNetwork::init()
    @           0x61a131 paddle::MultiGradientMachine::MultiGradientMachine()
    @           0x63d75f paddle::GradientMachine::create()
    @           0x73fa5b paddle::TrainerInternal::init()
    @           0x73c510 paddle::Trainer::init()
    @           0x5b8a49 main
    @     0x7f55e7d21bd5 __libc_start_main
    @           0x5cdfa5 (unknown)
/home/aducz/paddle/paddle_internal_release_tools/idl/paddle/output/bin/paddle_local: line 109: 15845 Segmentation fault      (core dumped) ${DEBUGGER} $MYDIR/../opt/paddle/bin/paddle_trainer ${@:2}

相关模型配置如下:

 if not is_predict:
     crf_l = crf_layer(
         name='crf',
         size=label_dict_len,
         input=feat,
         label=target,
         param_attr=ParameterAttribute(
             name='crfw', learning_rate=mix_hidden_lr))
          
     crf_dec_l = crf_decoding_layer(
         name='crf_dec_l',
         size=label_dict_len,
         input=feat,
         label=target,
         layer_attr=ExtraAttr(device=-1),
         param_attr=ParameterAttribute(name='crfw'))
          
     eval = sum_evaluator(input=crf_dec_l)
          
     outputs(crf_l)

版本信息

PaddlePaddle 0.9.0, compiled with
    with_avx: ON
    with_gpu: ON
    with_double: OFF
    with_python: ON
    with_rdma: OFF
    with_glog: ON
    with_gflags: ON
    with_metric_learning: 
    with_timer: OFF
    with_predict_sdk: 
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle#2916
渝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