This commit fixes invalid typename in template class.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
{
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;
}
{
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;
}
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)