diff options
Diffstat (limited to 'runtimes/neurun/src/backend/cpu/operand/Tensor.cc')
-rw-r--r-- | runtimes/neurun/src/backend/cpu/operand/Tensor.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtimes/neurun/src/backend/cpu/operand/Tensor.cc b/runtimes/neurun/src/backend/cpu/operand/Tensor.cc index 0e4f34aac..a5251292e 100644 --- a/runtimes/neurun/src/backend/cpu/operand/Tensor.cc +++ b/runtimes/neurun/src/backend/cpu/operand/Tensor.cc @@ -16,6 +16,8 @@ #include "Tensor.h" +#define NO_USE(a) (void)(a) + namespace neurun { namespace backend @@ -25,7 +27,11 @@ namespace cpu namespace operand { -// NO IMPLEMENTATION YET +size_t Tensor::calcOffset(const neurun::util::feature::Coordinate4D &coords) +{ + NO_USE(coords); + throw std::runtime_error("offset_element_in_bytes is not supported for cpu::Tensor now."); +} } // namespace operand } // namespace cpu |