33 Star 37 Fork 136

Ascend / parser

 / 详情

【应用开发】pythorch在线推理不支持数组的逻辑运算

Analysing
Bug-Report
创建于  
2021-06-11 16:27

pythorch在线推理不支持数组的逻辑运算,在CPU上测试是支持的

访问这个数据就会报错sorted_indices[sorted_indices_to_remove]其中
sorted_indices_to_remove为tensor([False, False, False, ..., True, True, True], device='npu:0')
sorted_indices[]为tensor([ 674, 862, 1399, ..., 23, 24, 25], device='npu:0')

Traceback (most recent call last):
File "generate.py", line 286, in
main()
File "generate.py", line 251, in main
temperature=temperature, top_k=topk, top_p=topp, repitition_penalty=repetition_penalty, device=device
File "generate.py", line 183, in generate
repitition_penalty=repitition_penalty, device=device)
File "generate.py", line 139, in sample_sequence
filtered_logits = top_k_top_p_filtering(next_token_logits, top_k=top_k, top_p=top_p)
File "generate.py", line 91, in top_k_top_p_filtering
sorted_indices[sorted_indices_to_remove]
RuntimeError: Run:/home/HwHiAiUser/wubo/pytorch/aten/src/ATen/native/npu/frame/OpParamMaker.cpp:32 NPU error,NPU error code is:507018
E39999: Inner Error!
Aicpu kernel execute failed, device_id=0, stream_id=1, task_id=1337, fault so_name=libpt_kernels.so, fault kernel_name=RunCpuKernel, extend_info=[FUNC:GetError][FILE:stream.cc][LINE:697]
Stream synchronize failed, stream = 0x5565148ae940[FUNC:StreamSynchronize][FILE:logger.cc][LINE:271]
rtStreamSynchronize execute failed, reason=[aicpu exception][FUNC:ReportFuncErrorReason][FILE:error_message_manage.cc][LINE:26]
Call rtStreamSynchronize(stream) fail, ret: 0x7BC8A[FUNC:LaunchKernel][FILE:op_task.cc][LINE:955]
[Exec][Op]Execute op failed. ge result = 36114152[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:134]
Aicpu kernel execute failed, device_id=0, stream_id=1, task_id=1340, fault so_name=libpt_kernels.so, fault kernel_name=RunCpuKernel, extend_info=[FUNC:GetError][FILE:stream.cc][LINE:697]

附件
wubo 2021-06-11 16:28

评论 (1)

wubo 创建了Bug-Report
wubo 关联仓库设置为Ascend/parser
wubo 修改了描述
wubo 上传了附件plog-17987_20210611155029776.log
展开全部操作日志

你好问题已经收到,正在分析中,有进展会及时知会你,谢谢

王涛 任务状态TODO 修改为Analysing
王涛 负责人设置为TonyCherm

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
1
https://gitee.com/ascend/parser.git
git@gitee.com:ascend/parser.git
ascend
parser
parser

搜索帮助