Example #1
0
 public CompositeEmbedding(Vocabulary vocabulary, Embedding token_embeddings)
 {
     __self__ = Instance.mxnet.contrib.text.embedding.CompositeEmbedding;
     Parameters["vocabulary"]       = vocabulary;
     Parameters["token_embeddings"] = token_embeddings;
     Init();
 }
Example #2
0
        public static Embedding register(Embedding embedding_cls)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>();

            parameters["embedding_cls"] = embedding_cls;

            return(new Embedding(InvokeStaticMethod(caller, "register", parameters)));
        }