Returns a tensor that evaluates to `True` if this optional has a value. Args: name: (Optional.) A name for the created operation. Returns: A scalar `tf.Tensor` of type `tf.bool`.
(self, name=None)
| 48 | |
| 49 | @abc.abstractmethod |
| 50 | def has_value(self, name=None): |
| 51 | """Returns a tensor that evaluates to `True` if this optional has a value. |
| 52 | |
| 53 | Args: |
| 54 | name: (Optional.) A name for the created operation. |
| 55 | |
| 56 | Returns: |
| 57 | A scalar `tf.Tensor` of type `tf.bool`. |
| 58 | """ |
| 59 | raise NotImplementedError("Optional.has_value()") |
| 60 | |
| 61 | @abc.abstractmethod |
| 62 | def get_value(self, name=None): |
no outgoing calls