tf.raw_ops.OptionalHasValue

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

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.raw_ops.OptionalHasValue

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

A Tensor of type bool.