aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_vgg19.cpp
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2018-06-12 11:30:50 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:52:54 +0000
commite083771a1f28c34485f0d0054e2645070df98846 (patch)
treed9798d0605cfc916cac8acf145a09ecf74e2f94e /examples/graph_vgg19.cpp
parent5cb37732db883e2fb9d96fc3698df8837dbcc8db (diff)
downloadComputeLibrary-e083771a1f28c34485f0d0054e2645070df98846.tar.gz
COMPMID-1160 Turn Graph hints into heuristics
Change-Id: Id24c2f07c59d863f8e1af6a1afbf6a542b2b9954 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/135142 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'examples/graph_vgg19.cpp')
-rw-r--r--examples/graph_vgg19.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/graph_vgg19.cpp b/examples/graph_vgg19.cpp
index b15c3f2def..8a0ec6fdbd 100644
--- a/examples/graph_vgg19.cpp
+++ b/examples/graph_vgg19.cpp
@@ -54,10 +54,6 @@ public:
const int target = argc > 1 ? std::strtol(argv[1], nullptr, 10) : 0;
Target target_hint = set_target_hint(target);
FastMathHint fast_math_hint = FastMathHint::DISABLED;
- const bool is_opencl = target_hint == Target::CL;
-
- ConvolutionMethod first_convolution3x3_hint = is_opencl ? ConvolutionMethod::DIRECT : ConvolutionMethod::GEMM;
- ConvolutionMethod convolution3x3_hint = ConvolutionMethod::DEFAULT;
// Parse arguments
if(argc < 2)
@@ -101,7 +97,6 @@ public:
}
graph << target_hint
- << first_convolution3x3_hint
<< fast_math_hint
<< InputLayer(TensorDescriptor(TensorShape(224U, 224U, 3U, 1U), DataType::F32),
get_input_accessor(image, std::move(preprocessor)))
@@ -113,7 +108,6 @@ public:
PadStrideInfo(1, 1, 1, 1))
.set_name("conv1_1")
<< ActivationLayer(ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU)).set_name("conv1_1/Relu")
- << convolution3x3_hint
<< ConvolutionLayer(
3U, 3U, 64U,
get_weights_accessor(data_path, "/cnn_data/vgg19_model/conv1_2_w.npy"),