Raise a nicer error message when trying to call gradients with while loop (#18052)
* Produce a nicer error message when trying to call gradients on a while loop without properly serializing graph via MetaGraphDef * Fix syntax and lint error * Fix minor intent: Wrong continued indentation (add 2 spaces)
Loading
Please sign in to comment