From d7353929c24c6e589afab4667d22ba6a7a24496b Mon Sep 17 00:00:00 2001 From: Jaeyoon Jung Date: Tue, 12 Aug 2025 11:34:26 +0900 Subject: [PATCH 0001/1797] Fix build with musl Added __GLIBC__ macro for 'mallinfo()' and 'mallinfo2()' as they are GLIBC specific and not available in other libc implementation like musl. --- tensorflow/lite/profiling/memory_info.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/lite/profiling/memory_info.cc b/tensorflow/lite/profiling/memory_info.cc index 1e1f8a80bf511b..b84367de12c140 100644 --- a/tensorflow/lite/profiling/memory_info.cc +++ b/tensorflow/lite/profiling/memory_info.cc @@ -47,10 +47,10 @@ MemoryUsage GetMemoryUsage() { if (getrusage(RUSAGE_SELF, &res) == 0) { result.mem_footprint_kb = res.ru_maxrss; } -#if defined(__NO_MALLINFO__) +#if defined(__NO_MALLINFO__) || !defined(__GLIBC__) result.total_allocated_bytes = -1; result.in_use_allocated_bytes = -1; -#elif defined(__GLIBC__) && __GLIBC_MINOR__ >= 33 +#elif __GLIBC_MINOR__ >= 33 const auto mem = mallinfo2(); result.total_allocated_bytes = mem.arena; result.in_use_allocated_bytes = mem.uordblks; From 488af498bb210854e864b06134e06676c0218647 Mon Sep 17 00:00:00 2001 From: ILCSFNO <138545608+ILCSFNO@users.noreply.github.com> Date: Thu, 2 Oct 2025 22:57:05 +0800 Subject: [PATCH 0002/1797] Update api_def_QuantizeAndDequantizeV4Grad.pbtxt to fix the docstring --- .../api_def_QuantizeAndDequantizeV4Grad.pbtxt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tensorflow/core/api_def/base_api/api_def_QuantizeAndDequantizeV4Grad.pbtxt b/tensorflow/core/api_def/base_api/api_def_QuantizeAndDequantizeV4Grad.pbtxt index 88ba0ea88cbfdd..cc2475ae0d34d4 100644 --- a/tensorflow/core/api_def/base_api/api_def_QuantizeAndDequantizeV4Grad.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_QuantizeAndDequantizeV4Grad.pbtxt @@ -1,5 +1,19 @@ op { graph_op_name: "QuantizeAndDequantizeV4Grad" + in_arg { + name: "input_min" + description: < Date: Thu, 2 Oct 2025 23:19:36 +0800 Subject: [PATCH 0003/1797] Fix the docstring in `tf.raw_ops.ThreadPoolHandle()` --- .../base_api/api_def_ThreadPoolHandle.pbtxt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tensorflow/core/api_def/base_api/api_def_ThreadPoolHandle.pbtxt b/tensorflow/core/api_def/base_api/api_def_ThreadPoolHandle.pbtxt index 0bc34ecb077cb6..47303ad2a85f89 100644 --- a/tensorflow/core/api_def/base_api/api_def_ThreadPoolHandle.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_ThreadPoolHandle.pbtxt @@ -1,16 +1,16 @@ op { graph_op_name: "ThreadPoolHandle" - out_arg { - name: "handle" + attr { + name: "num_threads" description: < Date: Thu, 2 Oct 2025 23:49:41 +0800 Subject: [PATCH 0004/1797] Fix the docstring in `tf.raw_ops.StatsAggregatorHandleV2()` --- .../api_def/base_api/api_def_StatsAggregatorHandleV2.pbtxt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tensorflow/core/api_def/base_api/api_def_StatsAggregatorHandleV2.pbtxt b/tensorflow/core/api_def/base_api/api_def_StatsAggregatorHandleV2.pbtxt index 682d3d2c023c6b..32b0ea64211f32 100644 --- a/tensorflow/core/api_def/base_api/api_def_StatsAggregatorHandleV2.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_StatsAggregatorHandleV2.pbtxt @@ -1,4 +1,11 @@ op { graph_op_name: "StatsAggregatorHandleV2" + attr { + name: "container" + description: <