Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

fix a bug in inception_inference.cpp #14674

Merged
merged 1 commit into from
Apr 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update inception_inference.cpp
fix a bug when use --gpu
  • Loading branch information
champagne828 committed Apr 11, 2019
commit 27a3801f1cdb28be76cbf74aee925e35e089230a
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