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/09/06 18:32:54 UTC
[GitHub] eric-haibin-lin commented on issue #12465: Documentation
Inconsistent for Sparse Embedding symbol API
eric-haibin-lin commented on issue #12465: Documentation Inconsistent for Sparse Embedding symbol API
URL: https://github.com/apache/incubator-mxnet/issues/12465#issuecomment-419197125
Hi I cannot reproduce it with the following code:
```
pip list | grep mxnet
mxnet (1.3.0b20180826)
```
```
Python 2.7.13 (default, Dec 18 2016, 07:03:39)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mxnet as mx
>>> data = mx.sym.var('data')
>>> weight = mx.sym.var('weight')
>>> input_dim = 1
>>> output_dim = 1
>>> embed = mx.sym.Embedding(data, weight, input_dim, output_dim, sparse_grad=True)
>>> embed
<Symbol embedding0>
>>> embed = mx.sym.Embedding(data, weight, input_dim, output_dim, sparse_grad=False)
>>> embed
<Symbol embedding1>
```
----------------------------------------------------------------
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