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

[onert-micro] Change allocateAndWriteInputTensor's data type #11549

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class Interpreter

~Interpreter();

void allocateAndWriteInputTensor(int32_t input_tensor_index, const void *data, size_t data_size);
void allocateAndWriteInputTensor(int32_t input_tensor_index, const uint8_t *data,
size_t data_size);
uint8_t *allocateInputTensor(int32_t input_tensor_index);

uint8_t *readOutputTensor(int32_t output_tensor_index);
Expand Down
2 changes: 1 addition & 1 deletion onert-micro/luci-interpreter/src/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int32_t Interpreter::getOutputDataSizeByIndex(int32_t output_tensor_index)
return runtime_graph->getOutputDataSizeByIndex(output_tensor_index);
}

void Interpreter::allocateAndWriteInputTensor(int32_t input_tensor_index, const void *data,
void Interpreter::allocateAndWriteInputTensor(int32_t input_tensor_index, const uint8_t *data,
size_t data_size)
{
assert(data_size > 0);
Expand Down