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
Loading
Please sign in to comment