Skip to content

Commit

Permalink
Update inception_inference.cpp (apache#14674)
Browse files Browse the repository at this point in the history
fix a bug when use --gpu
  • Loading branch information
champagne828 authored and kedarbellare committed Apr 20, 2019
1 parent bbcc269 commit f729926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp-package/example/inference/inception_inference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void Predictor::PredictImage(const std::string& image_file) {
executor->Forward(false);

// The output is available in executor->outputs.
auto array = executor->outputs[0].Copy(global_ctx);
auto array = executor->outputs[0].Copy(Context::cpu());

/*
* Find out the maximum accuracy and the index associated with that accuracy.
Expand Down

0 comments on commit f729926

Please sign in to comment.