From commits-return-110357-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Fri Dec 27 19:45:50 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 80F03180658 for ; Fri, 27 Dec 2019 20:45:50 +0100 (CET) Received: (qmail 25550 invoked by uid 500); 27 Dec 2019 19:45:49 -0000 Mailing-List: contact commits-help@mxnet.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mxnet.incubator.apache.org Delivered-To: mailing list commits@mxnet.incubator.apache.org Received: (qmail 25541 invoked by uid 99); 27 Dec 2019 19:45:49 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Dec 2019 19:45:49 +0000 From: GitBox To: commits@mxnet.apache.org Subject: [GitHub] [incubator-mxnet] reminisce commented on issue #17009: [Numpy] support boolean indexing Message-ID: <157747594977.19815.11307963762714101145.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Fri, 27 Dec 2019 19:45:49 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit reminisce commented on issue #17009: [Numpy] support boolean indexing URL: https://github.com/apache/incubator-mxnet/pull/17009#issuecomment-569333796 I think it should error out in the following case since semantically, there is no axis for 0-d arrays and NumPy raises the error as well. ```python >>> import numpy as np >>> a = np.array(3432) >>> a array(3432) >>> a[0] Traceback (most recent call last): File "", line 1, in IndexError: too many indices for array ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services