From a70d68b3acb7c248572a9ce2e90a67392e6c689c Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Thu, 14 Jan 2021 11:15:36 -0800 Subject: [PATCH] Bump eager stack trace size from 10 to 30 When creating resources, 10 frames would only contain internal TF frames, which do not contain useful information. PiperOrigin-RevId: 351837613 Change-Id: Ib24db15f3d8c66a9bc1060ba951f3f930a346096 --- tensorflow/python/util/stack_trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/util/stack_trace.h b/tensorflow/python/util/stack_trace.h index eec6feeb1eb..8071b72c920 100644 --- a/tensorflow/python/util/stack_trace.h +++ b/tensorflow/python/util/stack_trace.h @@ -52,7 +52,7 @@ using StackTraceFilter = std::function; // A class for capturing Python stack trace. class StackTrace final { public: - static constexpr int kStackTraceInitialSize = 10; + static constexpr int kStackTraceInitialSize = 30; StackTrace() {}