diff options
Diffstat (limited to 'examples/graph_vgg19.cpp')
-rw-r--r-- | examples/graph_vgg19.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/graph_vgg19.cpp b/examples/graph_vgg19.cpp index 74cb65ab69..61bb9a5190 100644 --- a/examples/graph_vgg19.cpp +++ b/examples/graph_vgg19.cpp @@ -21,14 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef ARM_COMPUTE_CL /* Needed by Utils.cpp to handle OpenCL exceptions properly */ -#error "This example needs to be built with -DARM_COMPUTE_CL" -#endif /* ARM_COMPUTE_CL */ #include "arm_compute/graph/Graph.h" #include "arm_compute/graph/Nodes.h" -#include "arm_compute/runtime/CL/CLScheduler.h" -#include "arm_compute/runtime/Scheduler.h" #include "support/ToolchainSupport.h" #include "utils/GraphUtils.h" #include "utils/Utils.h" @@ -37,7 +32,6 @@ using namespace arm_compute::graph; using namespace arm_compute::graph_utils; -using namespace arm_compute::logging; /** Example demonstrating how to implement VGG19's network using the Compute Library's graph API * @@ -83,9 +77,8 @@ void main_graph_vgg19(int argc, const char **argv) // Check if OpenCL is available and initialize the scheduler TargetHint hint = TargetHint::NEON; - if(arm_compute::opencl_is_available()) + if(Graph::opencl_is_available()) { - arm_compute::CLScheduler::get().default_init(); hint = TargetHint::OPENCL; } |