Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tflchef] Tidy GeneratedModelImpl #13644

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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