From d8b65d40358ee2acde556511ebf84a9ad50cbd47 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 18 Apr 2017 08:41:02 -0800 Subject: [PATCH] Enable DCHECK in shape inference to check that the shape function has called set_output for each output tensor. Change: 153472242 --- tensorflow/core/framework/shape_inference.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/tensorflow/core/framework/shape_inference.h b/tensorflow/core/framework/shape_inference.h index 5e116884c67..e88f6dbb042 100644 --- a/tensorflow/core/framework/shape_inference.h +++ b/tensorflow/core/framework/shape_inference.h @@ -182,15 +182,12 @@ class InferenceContext { if (!s.ok()) { return AttachContext(s); } -#if 0 - // TODO(cwhipkey): enable this check #ifndef NDEBUG for (int i = 0; i < num_outputs(); ++i) { DCHECK(output(i).IsSet()) << i << " for " << node_def().name() << " of type " << node_def().op(); } #endif // NDEBUG -#endif return s; }