Creates a scalar `tf.Tensor` of `tf.variant` representing this dataset. Returns: A scalar `tf.Tensor` of `tf.variant` type, which represents this dataset.
(self)
| 1680 | |
| 1681 | @abc.abstractmethod |
| 1682 | def _as_variant_tensor(self): |
| 1683 | """Creates a scalar `tf.Tensor` of `tf.variant` representing this dataset. |
| 1684 | |
| 1685 | Returns: |
| 1686 | A scalar `tf.Tensor` of `tf.variant` type, which represents this dataset. |
| 1687 | """ |
| 1688 | raise NotImplementedError("Dataset._as_variant_tensor") |
| 1689 | |
| 1690 | @deprecation.deprecated( |
| 1691 | None, "Use `for ... in dataset:` to iterate over a dataset. If using " |