From dev-return-3662-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Thu Jul 19 07:00:32 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1FF7C180630 for ; Thu, 19 Jul 2018 07:00:31 +0200 (CEST) Received: (qmail 43888 invoked by uid 500); 19 Jul 2018 05:00:31 -0000 Mailing-List: contact dev-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 dev@mxnet.incubator.apache.org Received: (qmail 43876 invoked by uid 99); 19 Jul 2018 05:00:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2018 05:00:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 002981A29CF for ; Thu, 19 Jul 2018 05:00:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.14 X-Spam-Level: ** X-Spam-Status: No, score=2.14 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id pVAH7CJSSjDQ for ; Thu, 19 Jul 2018 05:00:28 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0C5CF5F17B for ; Thu, 19 Jul 2018 05:00:28 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id n96-v6so5064982lfi.1 for ; Wed, 18 Jul 2018 22:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2N95F4ZXK0HGoyzA8CBW6cAxmGN+4N/r5A4DoBSPNc0=; b=XLJgHPK2/TnvybOe+SjMoHdUEuA0iQqbA4ik1qzCdapHzu5C0xeH0VI9nD8gQ5b4iB VVuNQasczsKEPaHpGdVktvQawFIsXbnhtvztFFbR4VkfSDFgmY/co/LrSas+gdHqdPZ1 GUxtHfBgDnqiTzerj9HKQUkKszZfSKm3J0/gTr6wGv9iNmIo0wRs4TEh/Anyp8BRJuoB 0H/X07D9VEGXoEQUdwuNF3kPdiPJtvl3WxTY9pniqcAhKiaY+7mTChSbmKvsWYEXlS7Q vnT4dRVyYJqDffxMN7SOB3nMUFsp5LEStkGY2gN46EKEBgVrH+/5AKopgAi6z37gtxO1 3Ckg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2N95F4ZXK0HGoyzA8CBW6cAxmGN+4N/r5A4DoBSPNc0=; b=mAHymOdLIhN7uv/JHu1ifinnff/EY5J1cuBtU9Ux5WsWg2Y7JTTTFhT0MIpvEhI0Ld slV4ivrf/QPCaw+ijB6XhCkrFYaUATX44OE7I0vPmkwAKEXXnCrWZ+3Xl08g6TtyUUp6 Sq6vg59rWCEmWKAR952eNBkJ9IfET+Xkit940u44HgeVpXviN0S0DD4MTH6Q/eVd8IQy IIdT5++8hR2jXVx2n0KThEuc91EkaoCTWd2oKPg8Rwn08or/YEGxnhQYz+U35jGQySlc XaNVMH7HxIJa3L+6r2QsMmN6SSfOm/68u3w8Kw8ThWQHphOoDXRr9D21i1rNug+Qegeq phXQ== X-Gm-Message-State: AOUpUlG9z36YYEX/zl7bB6MEEnMEKqMasW2M/7LUP+7uwGiQZ3rsKgnQ vjGA9pxxnAHFlZIpozDRQV/jWPZe/fdwmOuxLlS0aIe6 X-Google-Smtp-Source: AAOMgpf/iZyQtUESbAmDVRIClVSyV+6ex3sN08n6r7/akP04OsdFvki3VSNUUdR9Get3PQgRFeq0XTe0IVDgwAdqXCI= X-Received: by 2002:a19:548e:: with SMTP id b14-v6mr5252596lfl.10.1531976427209; Wed, 18 Jul 2018 22:00:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: sandeep krishnamurthy Date: Wed, 18 Jul 2018 22:00:13 -0700 Message-ID: Subject: Re: Data Type improvement in MXNet Scala To: dev@mxnet.incubator.apache.org Content-Type: multipart/alternative; boundary="000000000000bf86950571530eb3" --000000000000bf86950571530eb3 Content-Type: text/plain; charset="UTF-8" Hi Qing, Thanks for picking this issue. How would multiple inputs/labels be handled? By name or by position? Background: Recently I faced issue in Python where name of the input symbol name was not used, but, position was used. Python2 reads list from 0 and Python3 reads list from last element. So based on the python version, I was having swapped symbol and hence shape mis match errors. Best Sandeep On Wed, Jul 18, 2018 at 8:09 PM Naveen Swamy wrote: > Thanks for looking into this Qing :) > > this would alleviate the problems we have in getting RNNs to work in Scala. > Can we call name the new APIs `provideDataDesc` and `provideLabelDesc` ? > > Thanks, Naveen > > On Wed, Jul 18, 2018 at 3:43 PM, Qing Lan wrote: > > > Hi all, > > > > I would like to propose a change on the MXNet Scala data_type: > > > > Depreciate the `provideData` and `provideLabel` functions to provide > > `DataDesc` type instead of `ListMap[String, Shape]` type. > > > > There were several issues regarding to this since v0.12 on Scala. Several > > users reported that the `implicit def ListMap2Descs` helps to do some > > downcasting job however missing information during this process (layout > > property). > > MXNet Python language has already change this part into `DataDesc`. In > > that case, I plan to add two more methods that will take `DataDesc` and > > depreciate the functions that mentioned above. The downcasting method > > `ListMap2Descs` will also be depreciated and not to be used in current > > MXNet Scala code base. > > > > Thanks, > > Qing > > > > References: > > Code position: > > https://github.com/apache/incubator-mxnet/blob/master/ > > scala-package/core/src/main/scala/org/apache/mxnet/IO.scala#L312-L315 > > https://github.com/apache/incubator-mxnet/blob/master/ > > scala-package/core/src/main/scala/org/apache/mxnet/IO.scala#L358-L363 > > > > Issue links: > > https://github.com/apache/incubator-mxnet/issues/11775 > > https://github.com/apache/incubator-mxnet/issues/10753 > > https://github.com/apache/incubator-mxnet/issues/11571 > > > > > -- Sandeep Krishnamurthy --000000000000bf86950571530eb3--