Save the date! Google I/O returns May 18-20 Register now


View source on GitHub

Return the bool value for pred, or None if pred had a dynamic value.

pred A scalar, either a Python bool or tensor.

True or False if pred has a constant boolean value, None otherwise.

TypeError If pred is not a Tensor or bool.