Skip to content

Commit

Permalink
[tflchef] Tidy GeneratedModelImpl
Browse files Browse the repository at this point in the history
This will tidy GeneratedModelImpl base() and size() methods.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark committed Aug 12, 2024
1 parent d0db7a8 commit c5a4c59
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions compiler/tflchef/core/src/ModelChef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const char *>(_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; }
Expand Down

0 comments on commit c5a4c59

Please sign in to comment.