Skip to content

Commit

Permalink
Fix asan invalid-bool-load errors in zip_test_lstm by initializing lh…
Browse files Browse the repository at this point in the history
…s_cacheable

and rhs_cacheable before use.

PiperOrigin-RevId: 292983666
Change-Id: I05a625a9a5e4273436522eb8a9984c4b44c45fbc
  • Loading branch information
fdxmw authored and tensorflower-gardener committed Feb 3, 2020
1 parent 349bbf3 commit 5a7fb2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tensorflow/lite/kernels/internal/optimized/optimized_ops.h
Expand Up @@ -3011,6 +3011,8 @@ inline void LstmCell(
tflite::FullyConnectedParams fc_params;
fc_params.float_activation_min = std::numeric_limits<float>::lowest();
fc_params.float_activation_max = std::numeric_limits<float>::max();
fc_params.lhs_cacheable = false;
fc_params.rhs_cacheable = false;
FullyConnected(fc_params, concat_temp_shape, concat_temp_data, weights_shape,
weights_data, bias_shape, bias_data, activ_temp_shape,
activ_temp_data, cpu_backend_context);
Expand Down
1 change: 0 additions & 1 deletion tensorflow/lite/testing/BUILD
Expand Up @@ -50,7 +50,6 @@ exports_files([
"no_gpu", # Executing with TF GPU configurations is redundant.
"no_oss",
"tflite_not_portable_intentional",
"noasan", # b/148160116
],
test_name = test_name,
deps = [
Expand Down

0 comments on commit 5a7fb2c

Please sign in to comment.