You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2018/05/01 17:54:50 UTC
[incubator-mxnet] branch master updated: API calls are not
consistent in the example (#10763)
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 97da5e3 API calls are not consistent in the example (#10763)
97da5e3 is described below
commit 97da5e3b35b0725d10deffef0032f203df51d271
Author: James <ja...@gmail.com>
AuthorDate: Tue May 1 10:54:46 2018 -0700
API calls are not consistent in the example (#10763)
* Make api call consistent
* Make API call consistent
---
example/sparse/factorization_machine/model.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/example/sparse/factorization_machine/model.py b/example/sparse/factorization_machine/model.py
index f0af2e6..98967ed 100644
--- a/example/sparse/factorization_machine/model.py
+++ b/example/sparse/factorization_machine/model.py
@@ -27,10 +27,10 @@ def factorization_machine_model(factor_size, num_features,
v = mx.symbol.Variable("v", shape=(num_features, factor_size), stype='row_sparse',
init=init_config['v'], lr_mult=lr_mult_config['v'],
wd_mult=wd_mult_config['v'])
- w = mx.symbol.var('w', shape=(num_features, 1), stype='row_sparse',
+ w = mx.symbol.Variable('w', shape=(num_features, 1), stype='row_sparse',
init=init_config['w'], lr_mult=lr_mult_config['w'],
wd_mult=wd_mult_config['w'])
- w0 = mx.symbol.var('w0', shape=(1,), init=init_config['w0'],
+ w0 = mx.symbol.Variable('w0', shape=(1,), init=init_config['w0'],
lr_mult=lr_mult_config['w0'], wd_mult=wd_mult_config['w0'])
w1 = mx.symbol.broadcast_add(mx.symbol.dot(x, w), w0)
--
To stop receiving notification emails like this one, please contact
jxie@apache.org.