Embeddings in Mxnet

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)

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

1 Like