From: 박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 Date: Mon, 23 Apr 2018 02:31:12 +0000 (+0900) Subject: Introduce 'nncc::core::ADT::feature::Reader' interface (#118) X-Git-Tag: nncc_backup~2753 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=232ff31bf0f3bddb5b459ee6a2a9112363c76364;p=platform%2Fcore%2Fml%2Fnnfw.git Introduce 'nncc::core::ADT::feature::Reader' interface (#118) This commit introduces 'nncc::core::ADT::feature::Reader' interface which allows its client to read the content of feature map. Signed-off-by: Jonghyun Park --- diff --git a/libs/core/include/nncc/core/ADT/feature/Reader.h b/libs/core/include/nncc/core/ADT/feature/Reader.h new file mode 100644 index 0000000..06fbdfb --- /dev/null +++ b/libs/core/include/nncc/core/ADT/feature/Reader.h @@ -0,0 +1,27 @@ +#ifndef __NNCC_CORE_ADT_FEATURE_READER_H__ +#define __NNCC_CORE_ADT_FEATURE_READER_H__ + +#include + +namespace nncc +{ +namespace core +{ +namespace ADT +{ +namespace feature +{ + +template struct Reader +{ + virtual ~Reader() = default; + + virtual T at(uint32_t ch, uint32_t row, uint32_t col) const = 0; +}; + +} // namespace feature +} // namespace ADT +} // namespace core +} // namespace nncc + +#endif // __NNCC_CORE_ADT_FEATURE_READER_H__ diff --git a/libs/core/src/nncc/core/ADT/feature/Feature.cpp b/libs/core/src/nncc/core/ADT/feature/Feature.cpp new file mode 100644 index 0000000..53237a6 --- /dev/null +++ b/libs/core/src/nncc/core/ADT/feature/Feature.cpp @@ -0,0 +1,5 @@ +#include "nncc/core/ADT/feature/Reader.h" + +// DO NOT REMOVE THIS FILE +// +// This file is introduced to check the self-completeness of 'Reader.h'