tflite: mtk_neuron: Respect the model_token provided by caller

The current model token generating method can easily generate thes same
token for different models. Since we're also providing the model token
and is expecting them to be unique, we can mix the original token
calculation logic and the provided token to avoid collision.

BUG=b:378633716
TEST=Run VC and not see cache corruption error

Change-Id: I0088c57d345769f45ae70977043362377e2f1920
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tflite/+/6074030
Reviewed-by: Shik Chen <shik@chromium.org>
Tested-by: Tommy Chiang <ototot@google.com>
Commit-Queue: Tommy Chiang <ototot@google.com>
1 file changed