未验证 提交 6eff07b7 编写于 作者: A alankelly 提交者: GitHub

Zero initialize strided slice op params. (#1980)

This is so that a new field may safely be added.

BUG=http://b/260574895
上级 2e6a3712
......@@ -69,7 +69,7 @@ const int kMaxDim = 4;
tflite::StridedSliceParams BuildStridedSliceParams(
StridedSliceContext* op_context) {
tflite::StridedSliceParams op_params;
tflite::StridedSliceParams op_params{};
op_params.start_indices_count = op_context->dims;
op_params.stop_indices_count = op_context->dims;
op_params.strides_count = op_context->dims;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册