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 1143e78  Fix typo "weights" (#10934)
1143e78 is described below

commit 1143e78c94568732c517c369d49cbb824e0996c4
Author: Di Yang <hidiy...@gmail.com>
AuthorDate: Tue May 15 03:25:00 2018 +1000

    Fix typo "weights" (#10934)
    
    There is a typo in mx.opt.get.updater, it's supposed to be weight rather 
than weights. This typo will yield List Access Error in R
---
 R-package/R/optimizer.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/R-package/R/optimizer.R b/R-package/R/optimizer.R
index ff88531..3c503c2 100644
--- a/R-package/R/optimizer.R
+++ b/R-package/R/optimizer.R
@@ -401,7 +401,7 @@ mx.opt.get.updater <- function(optimizer, weights) {
   update <- optimizer$update
 
   update.closure <- function(weight, grad) {
-    ulist <- lapply(seq_along(weights), function(i) {
+    ulist <- lapply(seq_along(weight), function(i) {
       if (!is.null(grad[[i]])) {
         update(i, weight[[i]], grad[[i]], state.list[[i]])
       } else {

-- 
To stop receiving notification emails like this one, please contact
j...@apache.org.

Reply via email to