Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion include/tvm/runtime/crt/aot_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int TVMAotExecutor_GetInputIndex(TVMAotExecutor* executor, const char* name);
* \param name Output for retrieving name.
* \return Pointer to input name in `name`.
*/
int TVMAotExecutor_GetInputName(TVMAotExecutor* executor, int index, char** name);
int TVMAotExecutor_GetInputName(TVMAotExecutor* executor, int index, const char** name);

/*!
* \brief Run the generated program.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/crt/aot_executor/aot_executor.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int TVMAotExecutor_GetInputIndex(TVMAotExecutor* executor, const char* name) {
return rv;
}

int TVMAotExecutor_GetInputName(TVMAotExecutor* executor, int index, char** name) {
int TVMAotExecutor_GetInputName(TVMAotExecutor* executor, int index, const char** name) {
const TVMMetadata* md = executor->metadata;
*name = md->inputs[index].name;
return 0;
Expand Down