MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / string_handle

Method string_handle

tensorflow/python/data/ops/iterator_ops.py:441–454  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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(

Calls

no outgoing calls