Fix convacl to use unique_ptr
authorSaeHie Park <saehie.park@samsung.com>
Wed, 28 Mar 2018 10:32:19 +0000 (19:32 +0900)
committer박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 28 Mar 2018 10:53:28 +0000 (19:53 +0900)
This will fix convacl experiment to use std::unique_ptr

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
experiments/convacl/src/nnapi_acl_conv.cc

index 47d39ed..0085477 100644 (file)
@@ -4,6 +4,7 @@
 #include <string>
 #include <map>
 #include <cassert>
+#include <memory>
 #include <boost/format.hpp>
 // ACL Headers
 #include <arm_compute/graph/Graph.h>
@@ -163,14 +164,14 @@ ResultCode ANeuralNetworksExecution_create(ANeuralNetworksCompilation* compilati
 
   graph << target_hint
         << Tensor(TensorInfo(TensorShape(3U, 3U, 1U, 1U), 1, DataType::F32),
-                  arm_compute::support::cpp14::make_unique<InputAccessor>(true))
+                  std::unique_ptr<InputAccessor>(new InputAccessor(true)))
         << arm_compute::graph::ConvolutionLayer(
               3U, 3U, 1U,
-              arm_compute::support::cpp14::make_unique<WeightAccessor>(true),
-              arm_compute::support::cpp14::make_unique<BiasAccessor>(),
+              std::unique_ptr<WeightAccessor>(new WeightAccessor(true)),
+              std::unique_ptr<BiasAccessor>(new BiasAccessor()),
               arm_compute::PadStrideInfo(1, 1, 0, 0))
         << Tensor(
-              arm_compute::support::cpp14::make_unique<OutputAccessor>());
+              std::unique_ptr<OutputAccessor>(new OutputAccessor()));
         ;
 
   std::cout << __FUNCTION__ << " ---" << std::endl;