Skip to content

refactor: Centralized implementation for GetElementCount and GetByteSize#121

Draft
yinggeh wants to merge 6 commits into
mainfrom
yinggeh/tri-820-getelementcount-and-getbytesize-improvements
Draft

refactor: Centralized implementation for GetElementCount and GetByteSize#121
yinggeh wants to merge 6 commits into
mainfrom
yinggeh/tri-820-getelementcount-and-getbytesize-improvements

Conversation

@yinggeh
Copy link
Copy Markdown
Contributor

@yinggeh yinggeh commented Apr 7, 2026

No description provided.

@yinggeh yinggeh changed the title asfasf refactor: Centralized implementation for GetElementCount and GetByteSize Apr 7, 2026
@yinggeh yinggeh changed the title refactor: Centralized implementation for GetElementCount and GetByteSize refactor: Centralized implementation for GetElementCount and GetByteSize Apr 7, 2026
Comment thread src/backend_common.cc

#include "triton/backend/backend_common.h"

#include "triton/common/model_config.h"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this inclusion should be optional, otherwise if we wan't all backends to inherit it we need to add those enabled in CMake config by default.

Suggested change
#include "triton/common/model_config.h"
#if defined(TRITON_COMMON_ENABLE_PROTOBUF) || defined(TRITON_COMMON_ENABLE_GRPC)
#include "triton/common/model_config.h"
#endif

@yinggeh yinggeh marked this pull request as draft April 10, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants