Skip to content

Commit

Permalink
[onert-micro] Change allocateAndWriteInputTensor's data type (#11549)
Browse files Browse the repository at this point in the history
This commit changes allocateAndWriteInputTensor's data type.

ONE-DCO-1.0-Signed-off-by: Artem Balyshev <[email protected]>

Co-authored-by: Artem Balyshev <[email protected]>
  • Loading branch information
BalyshevArtem and Artem Balyshev authored Sep 19, 2023
1 parent 2d63222 commit f9a697e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit f9a697e

Please sign in to comment.