phylieac / cbow

CBOW Model of pytorch, using C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cbow

CPP Sample Code of Pytorch, which implements CBOW Language model.

How to build

Fisrt, cmake 3.0+ is needed, to "build" dir, run "cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch ..". Then you can make.

CPP API is simlar to python.

About

CBOW Model of pytorch, using C++.

License:Apache License 2.0


Languages

Language:Makefile 36.2%Language:C++ 30.9%Language:C 19.2%Language:CMake 13.7%