Returns an `Optional` that has no value. NOTE: This method takes an argument that defines the structure of the value that would be contained in the returned `Optional` if it had a value. Args: value_structure: A `Structure` object representing the structure of the compone
(value_structure)
| 106 | |
| 107 | @staticmethod |
| 108 | def none_from_structure(value_structure): |
| 109 | """Returns an `Optional` that has no value. |
| 110 | |
| 111 | NOTE: This method takes an argument that defines the structure of the value |
| 112 | that would be contained in the returned `Optional` if it had a value. |
| 113 | |
| 114 | Args: |
| 115 | value_structure: A `Structure` object representing the structure of the |
| 116 | components of this optional. |
| 117 | |
| 118 | Returns: |
| 119 | An `Optional` that has no value. |
| 120 | """ |
| 121 | return _OptionalImpl(gen_dataset_ops.optional_none(), value_structure) |
| 122 | |
| 123 | |
| 124 | class _OptionalImpl(Optional): |