HomePhabricator

Change inferReturnTypes to return LogicalResult and values

Authored by jpienaar on Dec 6 2019, 2:42 PM.

Description

Change inferReturnTypes to return LogicalResult and values

Previously the error case was using a sentinel in the error case which was bad. Also make the one build invoke the other build to reuse verification there.

And follow up on suggestion to use formatv which I missed during previous review.

PiperOrigin-RevId: 284265762

Event Timeline

A. Unique TensorFlower <gardener@tensorflow.org> committed rG4add9edd7212: Change inferReturnTypes to return LogicalResult and values (authored by jpienaar).Dec 6 2019, 2:42 PM