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.