diff options
Diffstat (limited to 'examples/graph_resnet50.cpp')
-rw-r--r-- | examples/graph_resnet50.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/graph_resnet50.cpp b/examples/graph_resnet50.cpp index 90debb4293..a7d7abc761 100644 --- a/examples/graph_resnet50.cpp +++ b/examples/graph_resnet50.cpp @@ -57,6 +57,8 @@ public: bool enable_tuning = (target == 2); bool enable_memory_management = true; + ConvolutionMethod convolution_hint = (target_hint == Target::CL) ? ConvolutionMethod::WINOGRAD : ConvolutionMethod::GEMM; + // Parse arguments if(argc < 2) { @@ -97,6 +99,7 @@ public: get_weights_accessor(data_path, "/cnn_data/resnet50_model/conv1_weights.npy"), std::unique_ptr<arm_compute::graph::ITensorAccessor>(nullptr), PadStrideInfo(2, 2, 3, 3)) + << convolution_hint << BatchNormalizationLayer( get_weights_accessor(data_path, "/cnn_data/resnet50_model/conv1_BatchNorm_moving_mean.npy"), get_weights_accessor(data_path, "/cnn_data/resnet50_model/conv1_BatchNorm_moving_variance.npy"), |