From 1ca4b32229b7f32ebb048d263302c297496f5575 Mon Sep 17 00:00:00 2001 From: Brian Williammee Date: Tue, 15 Aug 2017 15:59:01 -0700 Subject: [PATCH] Log actual type with sparse feature parsing errors PiperOrigin-RevId: 165372385 --- tensorflow/core/util/example_proto_fast_parsing.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/core/util/example_proto_fast_parsing.cc b/tensorflow/core/util/example_proto_fast_parsing.cc index bcf3512efc9..3f27814a11c 100644 --- a/tensorflow/core/util/example_proto_fast_parsing.cc +++ b/tensorflow/core/util/example_proto_fast_parsing.cc @@ -657,7 +657,8 @@ Status FastParseSerializedExample( example_dtype != config.sparse[d].dtype) { return example_error(strings::StrCat( "Data types don't match. ", - "Expected type: ", DataTypeString(config.sparse[d].dtype))); + "Expected type: ", DataTypeString(config.sparse[d].dtype), + ", Actual type: ", DataTypeString(example_dtype))); } switch (config.sparse[d].dtype) { -- GitLab