Returns the value wrapped by this optional. If this optional does not have a value (i.e. `self.has_value()` evaluates to `False`), this operation will raise `tf.errors.InvalidArgumentError` at runtime. Args: name: (Optional.) A name for the created operation. Returns:
(self, name=None)
| 60 | |
| 61 | @abc.abstractmethod |
| 62 | def get_value(self, name=None): |
| 63 | """Returns the value wrapped by this optional. |
| 64 | |
| 65 | If this optional does not have a value (i.e. `self.has_value()` evaluates |
| 66 | to `False`), this operation will raise `tf.errors.InvalidArgumentError` |
| 67 | at runtime. |
| 68 | |
| 69 | Args: |
| 70 | name: (Optional.) A name for the created operation. |
| 71 | |
| 72 | Returns: |
| 73 | The wrapped value. |
| 74 | """ |
| 75 | raise NotImplementedError("Optional.get_value()") |
| 76 | |
| 77 | @abc.abstractproperty |
| 78 | def value_structure(self): |
no outgoing calls