$ export BACKEND=cpu
$ export ACTION=train
$ ./runUberJar.sh --action ${ACTION} --output-model-dir .
Model file created is called CnnSentenceClassificationModel-cpu.pb
.
$ export BACKEND=cpu
$ export ACTION=evaluate
$ ./runUberJar.sh --action ${ACTION} \
--input-model-file CnnSentenceClassificationModel-${BACKEND}.pb
Note: please ensure you have access to an Nvidia GPU and the necessary drivers i.e. CUDA, cuDNN etc... are installed.
$ export BACKEND=cpu
$ export ACTION=train
$ ./runUberJar.sh --action ${ACTION} --output-model-dir .
Model file created is called CnnSentenceClassificationModel-gpu.pb
.
$ export BACKEND=gpu
$ export ACTION=evaluate
$ ./runUberJar.sh --action ${ACTION} \
--input-model-file CnnSentenceClassificationModel-${BACKEND}.pb
Return to main README.md