Permalink
Browse files

Don't FATAL when asked for the name of an unknown type.

(Leaving it as an error for now while I check some of the invocations
to see if there's really a need for the diagnostic message).
Current fatal prevents some helpful error messages from propagating
back to the caller.
Change: 142870362
  • Loading branch information...
dave-andersen authored and tensorflower-gardener committed Dec 24, 2016
1 parent 5220461 commit f19b35458929908c1f6d8590f97615d976dafaa6
Showing with 2 additions and 2 deletions.
  1. +2 −2 tensorflow/core/framework/types.cc
@@ -88,8 +88,8 @@ string DataTypeString(DataType dtype) {
case DT_RESOURCE:
return "resource";
default:
LOG(FATAL) << "Unrecognized DataType enum value " << dtype;
return "";
LOG(ERROR) << "Unrecognized DataType enum value " << dtype;
return strings::StrCat("unknown dtype enum (", dtype, ")");
}
}

0 comments on commit f19b354

Please sign in to comment.