Skip to content

Commit f6f10e1

Browse files
DKLoehrcopybara-github
authored andcommitted
PR #95959: Include math.h in elementwise.cc
Imported from GitHub PR tensorflow/tensorflow#95959 This is required to build with the most recent version of LLVM's libc++, which moved the `abs` function from `stdlib.h` to `math.h` in llvm/llvm-project#139586. Copybara import of the project: -- 2fa2ab36dae8afc9cf838a5ce1726e4ba48afec6 by Devon Loehr <[email protected]>: Include math.h in elementwise.cc Merging this change closes #95959 FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#95959 from DKLoehr:math 2fa2ab36dae8afc9cf838a5ce1726e4ba48afec6 PiperOrigin-RevId: 775719122
1 parent 3b18988 commit f6f10e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tflite/kernels/elementwise.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
1313
limitations under the License.
1414
==============================================================================*/
1515

16+
#include <math.h>
1617
#include <stdint.h>
1718
#include <stdlib.h>
1819

0 commit comments

Comments
 (0)