Embeddings in Mxnet


#1

http://pytorch.org/docs/master/nn.html

In pytorch there is a way to store word embeddings and retrieve it by its indices.

Is this nn. Embedding in pytorch similar to Gluons nn. Embedding (https://mxnet.incubator.apache.org/api/python/gluon/nn.html#mxnet.gluon.nn.Embedding)


#2

yes.
you can initialize the embedding with embed.weight.set_data(…)