Join TensorFlow at Google I/O, May 11-12 Register now

tf.raw_ops.OptionalHasValue

Returns true if and only if the given Optional variant has a value.

optional A Tensor of type variant.
name A name for the operation (optional).

A Tensor of type bool.