apache/mxnet

Floating point exception in mxnet.ndarray.op.SequenceReverse

Open

#18,940 创建于 2020年8月16日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)C++ (6,711 fork)batch import
BugC++Operatorgood first issuev1.x

仓库指标

Star
 (20,808 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

(A clear and concise description of what the bug is.) mxnet.ndarray.op.SequenceReverse has floating point exception when given data has 0 in its shape. Please see the provided code for example.

Error Message

(Paste the complete error message. Please also include stack trace by setting environment variable DMLC_LOG_STACK_TRACE_DEPTH=10 before running your script.)

Floating point exception (core dumped)

To Reproduce

(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)

import mxnet
import numpy as np
data = mxnet.nd.array(np.random.rand(0,1,1))
mxnet.ndarray.op.SequenceReverse(data)

Steps to reproduce

(Paste the commands you ran that produced the error.)

  1. run the provided code in python interpreter or as a script

What have you tried to solve it?

Environment

We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:

curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python

# paste outputs here

Got 404 when trying to get the script.

Some environment information:

  • OS: ubuntu 18.04
  • Python: 3.7.6
  • pip: 20.0.2
  • numpy: 1.18.5
  • mxnet: 1.6.0

贡献者指南