From commits-return-29829-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Mon Apr 2 01:03:31 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 147FB180634 for ; Mon, 2 Apr 2018 01:03:30 +0200 (CEST) Received: (qmail 984 invoked by uid 500); 1 Apr 2018 23:03:30 -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 975 invoked by uid 99); 1 Apr 2018 23:03:30 -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, 01 Apr 2018 23:03:30 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 9C43180622; Sun, 1 Apr 2018 23:03:29 +0000 (UTC) Date: Sun, 01 Apr 2018 23:03:29 +0000 To: "commits@mxnet.apache.org" Subject: [incubator-mxnet] branch master updated: fix typo (#10321) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152262380867.24732.13913718975889572257@gitbox.apache.org> From: jxie@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-mxnet X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d56edcfa8248858f296f4c25a7a5659f410695c8 X-Git-Newrev: a3c0e0d78115c0171fa2ba9acbdc30681c18b0ff X-Git-Rev: a3c0e0d78115c0171fa2ba9acbdc30681c18b0ff X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. jxie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git The following commit(s) were added to refs/heads/master by this push: new a3c0e0d fix typo (#10321) a3c0e0d is described below commit a3c0e0d78115c0171fa2ba9acbdc30681c18b0ff Author: Aston Zhang <22279212+astonzhang@users.noreply.github.com> AuthorDate: Sun Apr 1 16:03:24 2018 -0700 fix typo (#10321) --- docs/api/python/autograd/autograd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/python/autograd/autograd.md b/docs/api/python/autograd/autograd.md index 410d6a9..1e699d2 100644 --- a/docs/api/python/autograd/autograd.md +++ b/docs/api/python/autograd/autograd.md @@ -39,7 +39,7 @@ and do some computation. Finally, call `backward()` on the result: ## Train mode and Predict Mode Some operators (Dropout, BatchNorm, etc) behave differently in -when training and when making predictions. +training and making predictions. This can be controlled with `train_mode` and `predict_mode` scope. By default, MXNet is in `predict_mode`. @@ -52,7 +52,7 @@ Although training usually coincides with recording, this isn't always the case. To control *training* vs *predict_mode* without changing *recording* vs *not recording*, -Use a `with autograd.train_mode():` +use a `with autograd.train_mode():` or `with autograd.predict_mode():` block. Detailed tutorials are available in Part 1 of -- To stop receiving notification emails like this one, please contact jxie@apache.org.