Fix invalid typename in template class (#1517)
author장지섭/동작제어Lab(SR)/Engineer/삼성전자 <jiseob.jang@samsung.com>
Fri, 1 Jun 2018 10:34:37 +0000 (19:34 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Fri, 1 Jun 2018 10:34:37 +0000 (19:34 +0900)
This commit fixes invalid typename in template class.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
runtimes/pure_arm_compute/src/internal/arm_compute/tensor/View.h
runtimes/pure_arm_compute/src/internal/nnapi/feature/View.h

index a5af6ed..c92fc35 100644 (file)
@@ -47,7 +47,7 @@ public:
   {
     const auto offset = byte_offset_of(index);
 
-    float *ptr = reinterpret_cast<float *>(_tensor->buffer() + offset);
+    T *ptr = reinterpret_cast<T *>(_tensor->buffer() + offset);
 
     return *ptr;
   }
@@ -56,7 +56,7 @@ public:
   {
     const auto offset = byte_offset_of(index);
 
-    float *ptr = reinterpret_cast<float *>(_tensor->buffer() + offset);
+    T *ptr = reinterpret_cast<T *>(_tensor->buffer() + offset);
 
     return *ptr;
   }
index b4cdb95..1039818 100644 (file)
@@ -12,7 +12,7 @@ namespace nnapi
 namespace feature
 {
 
-template <typename T> class View final : public nnfw::util::feature::Reader<float>
+template <typename T> class View final : public nnfw::util::feature::Reader<T>
 {
 public:
   View(const ::nnfw::util::feature::Shape &shape, uint8_t *ptr, size_t len)