Skip to content

Commit

Permalink
update makefile image gen tool version, tflm sdk version and fix bug …
Browse files Browse the repository at this point in the history
…about offset function
  • Loading branch information
kris-himax committed Aug 11, 2022
1 parent 454af6f commit 7447f8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ MODEL_LINK = https://www.himax.com.tw/we-i/himax_tflu_tree/model_setting_v03.zip
MODEL_LOC = tensorflow/lite/micro/tools/make/downloads/
MODEL_NAME = model.zip

SDK_LINK = https://www.himax.com.tw/we-i/himax_we1_sdk_v18.zip
SDK_LINK = https://www.himax.com.tw/we-i/himax_we1_sdk_v20.zip
SDK_LOC = .
SDK_NAME = sdk.zip

TOOL_LINK = https://www.himax.com.tw/we-i/image_gen_linux_v2_1_10.zip
TOOL_LINK = https://www.himax.com.tw/we-i/image_gen_linux_v2_1_12.zip
TOOL_LOC = .
TOOL_NAME = image_gen.zip

Expand Down
6 changes: 5 additions & 1 deletion tensorflow/lite/kernels/internal/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ inline size_t ReducedOutputOffset(const int num_dims, const int* dims,

inline int Offset(const RuntimeShape& shape, int i0, int i1, int i2, int i3) {
TFLITE_DCHECK_EQ(shape.DimensionsCount(), 4);
const int* dims_data = reinterpret_cast<const int*>(shape.DimsDataUpTo5D());
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined (__CCAC__)
volatile const int* dims_data = reinterpret_cast<const int*>(shape.DimsDataUpTo5D());
#else
const int* dims_data = reinterpret_cast<const int*>(shape.DimsDataUpTo5D());
#endif
TFLITE_DCHECK(i0 >= 0 && i0 < dims_data[0]);
TFLITE_DCHECK(i1 >= 0 && i1 < dims_data[1]);
TFLITE_DCHECK(i2 >= 0 && i2 < dims_data[2]);
Expand Down

0 comments on commit 7447f8c

Please sign in to comment.