Returns a string-valued `tf.Tensor` that represents this iterator. Args: name: (Optional.) A name for the created operation. Returns: A scalar `tf.Tensor` of type `tf.string`.
(self, name=None)
| 439 | self.element_spec)), self.element_spec) |
| 440 | |
| 441 | def string_handle(self, name=None): |
| 442 | """Returns a string-valued `tf.Tensor` that represents this iterator. |
| 443 | |
| 444 | Args: |
| 445 | name: (Optional.) A name for the created operation. |
| 446 | |
| 447 | Returns: |
| 448 | A scalar `tf.Tensor` of type `tf.string`. |
| 449 | """ |
| 450 | if name is None: |
| 451 | return self._string_handle |
| 452 | else: |
| 453 | return gen_dataset_ops.iterator_to_string_handle( |
| 454 | self._iterator_resource, name=name) |
| 455 | |
| 456 | @property |
| 457 | @deprecation.deprecated( |
no outgoing calls