diff --git a/paddle/contrib/inference/demo/simple_on_word2vec.cc b/paddle/contrib/inference/demo/simple_on_word2vec.cc index 9c36aa44ec75f83a7d26f17b13f1d3aad27eecd0..192a6414260ce06048b8c765402d89882cabc51b 100644 --- a/paddle/contrib/inference/demo/simple_on_word2vec.cc +++ b/paddle/contrib/inference/demo/simple_on_word2vec.cc @@ -72,6 +72,8 @@ void MainThreads(int num_threads, bool use_gpu) { NativeConfig config; config.model_dir = FLAGS_dirname + "word2vec.inference.model"; config.use_gpu = use_gpu; + config.fraction_of_gpu_memory = 0.15; + config.device = 0; auto main_predictor = CreatePaddlePredictor(config);