From a51ef161182fd781c6d761a965c6b5c27173c7a6 Mon Sep 17 00:00:00 2001 From: Allen Lavoie Date: Thu, 2 Apr 2020 17:58:37 -0700 Subject: [PATCH] Downgrate the "missing shape at index" warning. This comes up because gradient code mutates function call operations. We'll already have (correct) shapes for the user-visible outputs, so in most cases this won't be too serious. We should fix the issue, but in the meantime there's nothing users can/need to do. PiperOrigin-RevId: 304515374 Change-Id: I1ec132d216878454a205cf7bfc648b0582643ab8 --- tensorflow/core/common_runtime/shape_refiner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/core/common_runtime/shape_refiner.cc b/tensorflow/core/common_runtime/shape_refiner.cc index 8d396298e01..d6ab1e30a55 100644 --- a/tensorflow/core/common_runtime/shape_refiner.cc +++ b/tensorflow/core/common_runtime/shape_refiner.cc @@ -85,8 +85,8 @@ Status InferShapesForFunctionSubNode(const Node* node, ShapeRefiner* refiner, // TODO(b/134547156): TEMPORARY WORKAROUND. If input shape handle is not set // in outer context, set _Arg node output shape to unknown. if (outer_context->input(index).SameHandle(ShapeHandle())) { - LOG(WARNING) << "Function instantiation has undefined input shape at " - << "index: " << index << " in the outer inference context."; + VLOG(1) << "Function instantiation has undefined input shape at " + << "index: " << index << " in the outer inference context."; node_context->set_output(0, node_context->UnknownShape()); } else { node_context->set_output(0, outer_context->input(index));