Commit b53f5aa1 authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

Prevent deadlocks when OP_REQUIRES is used in AsyncOpKernel::ComputeAsync().

If OP_REQUIRES or OP_REQUIRES_OK are used in an override of AsyncOpKernel::ComputeAsync() and the condition does not hold, the process will deadlock because the `done` callback is never called. This change raises a fatal error with an actionable error message in this case.

PiperOrigin-RevId: 206373312
parent 81d927bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment