diff --git a/compiler/tflchef/core/src/ModelChef.cpp b/compiler/tflchef/core/src/ModelChef.cpp index 842fd0e4c3a..b3d3b5c836e 100644 --- a/compiler/tflchef/core/src/ModelChef.cpp +++ b/compiler/tflchef/core/src/ModelChef.cpp @@ -914,18 +914,9 @@ class GeneratedModelImpl final : public tflchef::GeneratedModel::Impl } public: - const char *base(void) const override - { - // Return the base address of generated flatbuffer model - return reinterpret_cast(_mc.get_buffer_pointer()); - } + const char *base(void) const override { return _mc.get_buffer_pointer(); } -public: - size_t size(void) const override - { - // Return the size of generated flatbuffer model - return _mc.get_size(); - } + size_t size(void) const override { return _mc.get_size(); } public: ModelChef &model_chef(void) { return _mc; }