You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/01 17:54:48 UTC

[GitHub] piiswrong closed pull request #10763: API calls are not consistent in the example

piiswrong closed pull request #10763: API calls are not consistent in the example
URL: https://github.com/apache/incubator-mxnet/pull/10763
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/example/sparse/factorization_machine/model.py b/example/sparse/factorization_machine/model.py
index f0af2e650d7..98967edd026 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)
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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