From dev-return-5102-archive-asf-public=cust-asf.ponee.io@singa.apache.org Sun Apr 12 02:42:46 2020 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 7EFBF180181 for ; Sun, 12 Apr 2020 04:42:46 +0200 (CEST) Received: (qmail 56310 invoked by uid 500); 12 Apr 2020 02:42:45 -0000 Mailing-List: contact dev-help@singa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@singa.apache.org Delivered-To: mailing list dev@singa.apache.org Received: (qmail 56300 invoked by uid 99); 12 Apr 2020 02:42:45 -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; Sun, 12 Apr 2020 02:42:45 +0000 From: GitBox To: dev@singa.apache.org Subject: [GitHub] [singa] chrishkchris commented on issue #674: Autograd Layer constructor Message-ID: <158665936538.8274.9191706340164145034.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Sun, 12 Apr 2020 02:42:45 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit chrishkchris commented on issue #674: Autograd Layer constructor URL: https://github.com/apache/singa/issues/674#issuecomment-612553917 > I think it would be better to define a new function to wrap these lines: > > ``` > def execute_once(fn): > get flag > disable graph > fn() > set flag > ``` @XJDKC Since we have used this stucture at least 2 times before, this wrapper should be useful. Could you help us wrap these line to turn off the buffering temporatory for tensor initialization (need to select the most suitable place/class to add the wrapper) ---------------------------------------------------------------- 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