Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9D59E200C1A for ; Mon, 13 Feb 2017 19:56:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9A59E160B60; Mon, 13 Feb 2017 18:56:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E31E4160B4A for ; Mon, 13 Feb 2017 19:56:26 +0100 (CET) Received: (qmail 83280 invoked by uid 500); 13 Feb 2017 18:56:26 -0000 Mailing-List: contact dev-help@systemml.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.incubator.apache.org Delivered-To: mailing list dev@systemml.incubator.apache.org Received: (qmail 83268 invoked by uid 99); 13 Feb 2017 18:56:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2017 18:56:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 24101186142 for ; Mon, 13 Feb 2017 18:56:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NcsWCxRnEnF6 for ; Mon, 13 Feb 2017 18:56:23 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7133B5F24C for ; Mon, 13 Feb 2017 18:56:23 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id s203so56210316oie.1 for ; Mon, 13 Feb 2017 10:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=4sLgFuipOospqtF3XoG5toSSAXCGh0+UfaTjIHEuDxg=; b=g2d8MxzegdV8earREtgBeK1sNKlPzG/7zNq96sXZVXmwhH/LTRt66mkuWjpbHgi37T YBo97mnWfJLz8/Bni2MoAyTt/YuEA+wPd/yCLQqUYfn3RlPw35zBCS98+IVQAdbgkvpe bCYIJ/oZbwhQKyy6GrR8+ZsbNetZG1WMRcFGPvEZegs1qj5YQ7iP5jTKzSQkuJ7foQa3 zOz6Z4eiIpS+9af4TAgxyVsjrTLgbUf/Fh0eCiY6bjDzUff2BaCCCcWYCyxaf4q2VRIz hlKvwBAoBuzQHfPJCo2VDcmMdnxfdGvx0yWYSDuFazzL9FuGAGnnaBDHF/ELtDfaFSvf bXtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=4sLgFuipOospqtF3XoG5toSSAXCGh0+UfaTjIHEuDxg=; b=f82xLxEjST5medSxbRteBxFIJf949tfjp2UvEwB0mtWS+mO5DuaDUD1gHKik3aCqJ5 e4wCeVVMUvmG/UiWbbpiI9oPtJgWQCPfUo0V0H4u1dBTGMeDpup3KRO12wNhsVXPUCYF XEMuo9TqW0mpAsMzrnnoYsSswhk9KEXDyUi9cEycIsofeFBb0XIfqo1b7gapiYWUDH/x /rlxMlFgZJ67QbvvubTfyfjMmbb36goqCDWNP+aYrVvyBIUwuuu5Mos4hC7QMw87lR3c 0FVFn0OuIRLqALOFSOFiwHL1U++wIfYF6ClCnMuZgeexqd5qhoKH2Xlms+aWfZXAHpyQ sXUQ== X-Gm-Message-State: AMke39mQVgyQBcncghDRbbr0hslsmVtnleKR+2CvnBznWXgu9BJmICieIg08WS2zZRk8Hg== X-Received: by 10.84.238.195 with SMTP id l3mr18657537pln.180.1487012176422; Mon, 13 Feb 2017 10:56:16 -0800 (PST) Received: from ?IPv6:2600:1010:b06c:3550:d4e6:daef:bedb:e1f5? ([2600:1010:b06c:3550:d4e6:daef:bedb:e1f5]) by smtp.gmail.com with ESMTPSA id r78sm22381788pfe.55.2017.02.13.10.56.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 10:56:15 -0800 (PST) From: dusenberrymw@gmail.com Content-Type: multipart/alternative; boundary=Apple-Mail-969B85F1-D6D7-40A8-ACAB-D9149574C954 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Mon, 13 Feb 2017 10:56:14 -0800 Subject: Re: Namespace handling w/ imports Message-Id: References: <39b71f78-2562-27c0-109b-1ab558d31b69@gmail.com> In-Reply-To: To: dev@systemml.incubator.apache.org X-Mailer: iPhone Mail (14D27) archived-at: Mon, 13 Feb 2017 18:56:27 -0000 --Apple-Mail-969B85F1-D6D7-40A8-ACAB-D9149574C954 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Thanks, Matthias for bringing this up. As Glenn pointed out, the full file p= ath as the namespace is needed so that we can effectively build libraries/pa= ckages for SystemML, rather than just single-file scripts. If you truncate t= he namespace down to just the name of the specific file, then you prevent th= e ability to build a library in which the same file name is used in multiple= folders. Another note with the example presented. Assuming that you are running the `= mnist_lenet-train.dml` script, the `train` and `predict` functions are defin= ed in `mnist_lenet.dml`, which is imported, so those functions would not be i= n the default namespace. -Mike -- Mike Dusenberry GitHub: github.com/dusenberrymw LinkedIn: linkedin.com/in/mikedusenberry Sent from my iPhone. > On Feb 12, 2017, at 10:15 PM, Glenn Weidner wrote: >=20 > Use of source filenames instead of default namespace helped address variou= s issues and tasks under https://issues.apache.org/jira/browse/SYSTEMML-590 t= hat were encountered when creating the SystemML-NN script library. Unit test= s were also added to cover different import scenarios. As I recall, function= name conflicts could potentially occur between independent source files whe= n global default namespace used. It also helped simplify calling dml-bodied f= unctions when a file was imported by another. >=20 > Thanks, > Glenn >=20 >=20 > Matthias Boehm ---02/12/2017 12:30:35 AM---While debugging our mnist_lenet= script, I encountered an issue with our namespace handling with imp >=20 > From: Matthias Boehm > To: dev@systemml.incubator.apache.org > Date: 02/12/2017 12:30 AM > Subject: Namespace handling w/ imports >=20 >=20 >=20 >=20 > While debugging our mnist_lenet script, I encountered an issue with our=20= > namespace handling with imports. Here is the related function call graph=20= > (after inlining): >=20 > ----FUNCTION CALL GRAPH > ------MAIN PROGRAM > --------.\mnist_lenet.dml::train > ----------.\nn/layers/dropout.dml::forward > ----------.\mnist_lenet.dml::predict >=20 > but it should read as follows >=20 > ----FUNCTION CALL GRAPH > ------MAIN PROGRAM > --------.defaultNS::train > ----------dropout::forward > ----------.defaultNS::predict >=20 > The namespace handling was changed a while ago. So my question is: was=20 > there a necessity to encode the filenames in the namespace or is this=20 > just a bug? >=20 >=20 > Regards, > Matthias >=20 >=20 >=20 >=20 --Apple-Mail-969B85F1-D6D7-40A8-ACAB-D9149574C954--