Skip to content

Commit f0b931a

Browse files
authored
[luci-interpreter] Remove unnecessary pragma (#15926)
This commit removes a #pragma statement from kernels/UnidirectionalSequenceLSTM.cpp This pragma used to guard the build from warnings coming from the TF but the build now works fine on newer GCC versions with strict build enabled. Additionally this pragma was never disabled (not scoped) with a #pragma pop statement which effectively ignored this warning for the rest of the project after this particular file was compiled. ONE-DCO-1.0-Signed-off-by: Tomasz Dołbniak <[email protected]>
1 parent 485384a commit f0b931a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/luci-interpreter/src/kernels/UnidirectionalSequenceLSTM.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ using namespace tflite;
3434
void UpdateLstmCellFloat(int n_batch, int n_cell, float *cell_state, const float *input_gate,
3535
float *forget_gate, const float *cell_gate, bool use_cifg, float clip)
3636
{
37-
// NOTE tflite source is as is but will fail build with gcc-8 and above
38-
// TODO remove #pragma
39-
#pragma GCC diagnostic ignored "-Wrestrict"
4037
tensor_utils::VectorVectorCwiseProduct(forget_gate, cell_state, n_batch * n_cell, cell_state);
4138

4239
if (use_cifg)

0 commit comments

Comments
 (0)